The ScenarioNumbering precompiler is responsible for adding an index to all scenarios and scenario outlines.
@tag1
Scenario Outline: Test language (<language>)
Given I am on Home page <language> user
When <language> language is choosen
Then I should be on Home page
And the title should be "<title>"
@tag2
Examples:
| language | title |
| EN | Welcome |
| FR | Bienvenue |
Scenario: Test without tag
Given I am on Home page user
Then I should be on Home page
It will be modified to:
@tag1
Scenario Outline: 1. Test language (<language>)
Given I am on Home page <language> user
When <language> language is choosen
Then I should be on Home page
And the title should be "<title>"
@tag2
Examples:
| language | title |
| EN | Welcome |
| FR | Bienvenue |
Scenario: 2. Test without tag
Given I am on Home page user
Then I should be on Home page
ScenarioNumbering accepts the following configuration:
Option | Type | Description | Default |
---|---|---|---|
format |
String |
The format, how index should be added to the name of the scenario/scenairo outline. Possible tokens:
|
${i}. ${name} |
This package uses debug for logging, use gpc:scenario-numbering
:
DEBUG=gpc:scenario-numbering* gherking ...
For detailed documentation see the TypeDocs documentation.
Generated using TypeDoc