I have 4 scenarios, for example:
Scenario: test single unit transaction
Given Scene is set
When We did something
Then
| header1 | unit | etc. |
| data1 | data2 | ... |
Scenario: test multiple unit transaction
Given Scene is set
When We did something
Then
| header1 | unit | etc. |
| data1 | data2 | ... |
| data3 | data4 | ... |
Scenario: test single percentage transaction
Given Scene is set
When We did something
Then
| header1 | percentage | etc. |
| data1 | data2 | ... |
Scenario: test multiple percentage transaction
Given Scene is set
When We did something
Then
| header1 | percentage | etc. |
| data1 | data2 | ... |
| data3 | data4 | ... |
They are a lot more complicated and longer, so I'd like to achieve something like this:
Scenario Outline: test transactions
Given Scene is set
When We did something
Then
| header1 | unit | etc. |
| <data1> | <data2> | ... |
Examples: single transaction
| header1 | unit | etc. |
| data1 | data2 | ... |
Examples: multiple transaction
| header1 | unit | etc. |
| data1 | data2 | ... | --------> these should run together in one test
| data3 | data4 | ... | -------->
And the same for the other type of transaction.
Unfortunately, Cucumber keeps running the above as 3 different scenarios, instead of 2, and the sencond one with 2 transactions. Does anyone have any idea how to make it work?
Thanks a lot.