enter image description herei want to write this kind of scenario outline,and when i use the @cat1 it should run the @Cat1 table and if i use other it should run other example table. is it possible in cucumber. I'm using eclipse to run the project
@Cat1 @cat2
Scenario Outline: Test...
@Cat1
Examples:
| input |
| cat1 |
@cat2
Examples:
| input |
| cat2 |
Yes it is possible. But the tags that diffrenciate the examples should only be placed on the respective tables and not on the scenario outline.
Scenario Outline: Test...
@Cat1
Examples:
|input | | cat1 |
@cat2
Examples:
|input | | cat2 |