Reputation: 59
My case in Cucumber JVM,I need to run the entire "case.feature" file with 5 Scenarios set on Language 1, Locale 1 first time,and then run the same entire "case.feature" set on Language 2, Locale 2 second time ,is there a way to set this up ?
Example:
Upvotes: 4
Views: 2861
Reputation: 1175
Use Scenario Outlines in cucumber in which the input you want can be in table format as shown below.
Scenario Outline: eating
Given there are <start> cucumbers
When I eat <eat> cucumbers
Then I should have <left> cucumbers
Examples:
| start | eat | left |
| 12 | 5 | 7 |
| 20 | 5 | 15 |
Upvotes: 1