I have a case where I have cucumber scenario outline with 3 examples and each example is generating some data which I need to store it in hashmap. For example-
Example1 generates- acct no.- abc
Example 2 generates - acct no. - def
Exmaple 3 generates - acct no. - ghi
I want to store it like acct[0]-abc, acc[1]-def, acc[2]-ghi
Right now if use map.put it overrides the first value. Please help me that how to keep on appending the hashmap or ow to use the same map for all three examples.
I tried using map.put and its oveerides the first value