Hi I want to generate dynamic data in the cucumber tables:
Feature: Generate dynamic data
Scenario Outline:
When open url
Then get the price list and save to "Price List" in context
#Note: Price list is an array and returned as [10, 20, 30, 40] and this is dynamic
When send "<singlepricelist" to server
.......the remaining steps....
Examples:
| singlepricelist |
| <<Price List |
Question: In the step "When send "", I want to send the values present in arraylist one by one i.e. the said step in this example should run 4 times with the values 10, 20, 30 and 40.
Can I generate the dynamic data in the Examples so that the above step will run 4 times? Note: singlepricelist can take only one value at a time.
Thanks in Advance !!!
See Question&Answers more detail:os