Using tags with examples/scenario outlines
Hi,
I have several BDD scenarios where I need to use scenario outlines and tags. I am programmatically running the tests and I am passing in the tags that I want to match against.
The format of the BDD is as follows:
test1 @Smoke @All @Card
Scenario: Test 1
Given...
When ...
Then ...
@System1
Examples:
|Value|
| a |
@System2 @System3
Examples:
|Value|
|b|
For example, I may want to run this scenario if I am running @smoke tests and sometimes I may want to use the data from examples table @System1, but at other times I may want to use the exampels table for@System2/@System3
In my script I am checking for the existence of both @Smoke and @System1 tags, however it does not seem to be detecting the @System1 tag
I have tried moving the tags around, but I either get both sets of examples run or neither.
Can this be done? If so, where should I put the tags for them to be picked up? Currently it looks as though it is only detecting the tags specified for the scenario not those for the examples tables