I have a cucumber scenario outline for testing a webservice that is similar to:
Scenario Outline: Check the limit functionality
When I GET "/api/activity-schedule-items.xml" with parameters {<filter>}
Then the xml attribute "total-count" is "<count>"
Scenarios:
| filter | count |
| 'limit' => 0 | 0 |
| 'limit' => 2 | 2 |
| 'limit' => 2 | 2 |
| 'limit' => -1 | 15 |
which works fine, however I want to re-run the same scenario outline and scenarios for each of our webservices. Basically, I would like to add another Scenarios block like:
Scenario Outline: Check the limit functionality
When I GET "<api>" with parameters {<filter>}
Then the xml attribute "total-count" is "<count>"
Scenarios:
| filter | count |
| 'limit' => 0 | 0 |
| 'limit' => 2 | 2 |
| 'limit' => 2 | 2 |
| 'limit' => -1 | 15 |
Scenarios:
| api |
| /api/activity-schedule-items.xml |
| /api/activity-schedules.xml |
| /api/tasks.xml |
and have cucumber do a cross join between the two tables.
Even better would be a way to specify the "api" table in a way to have it apply to all scenarios in the feature.
Is there a way to implement this in cucumber?