[SpecFlow] Iterate Feature File
Hello,
Suppose i have a feature file as shown below:
Feature: Feature1
Background: Backgroud1
……………………………………………………….
……………………………………………………….
Scenario: Scenario 1
…………………………………………………….
……………………………………………………
Examples:
| Title | Example |
| S01 | E01 |
| S02 | E02 |
| S03 | E03 |
Scenario: Scenario 2
…………………………………………………….
……………………………………………………
Examples:
| Title | Example |
| S_A | E_A |
| S_B | E_B |
| S_C | E_C |
When I am currently executing it, the execution order is that it runs all three iteration of scenario 1 then those of scenario 2 that is:
Scenario1 S01, Scenario1 S02, Scenario1 S03
then,
Scenario 2 S_A, Scenario 2 S_B, Scenario 2 S_C.
However, I need to iterate the feature file itself,
That is I want it to run like:
Scenario1 S01, Scenario 2 S_A
then,
Scenario1 S02, Scenario 2 S_B
then,
Scenario1 S03, Scenario 2 S_C
Can this be done?
0
Please sign in to leave a comment.
Comments
0 comments