I have a file saved with the following format:
Item 1 Item 2 1223 3223 1231 4432
I have a script that add item to cart. What I want is that my test should look at the file, if it has 2 items as in case of the first entry above, then it should run the add item to cart twice, once with item 1223 and once with item 3223.
But during the next cycle, I want my test to execute the add item to cart just once, since this time it has only one item. (1231)
Can someone help me with this. Thank you