You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Random Example" precompiler would take a Scenario Outline containing multiple rows of Examples and change the Scenario Outline, so a given number of examples are executed.
Use cases
It would be a solution for when a tester wants to increase coverage but decrease execution time: they can add all the relevant Examples to the Scenario Outline. This precompiler selects a few Examples to be used in the build. This way, all cases are covered and represented, but not in each build.
Example
Take the following (example) feature file (part):
@examples(1)Scenario Outline:
Given the Search page is opened
And "<searchTerm>" is typed into the Search Field
And Search is executed
Then Search Result Count should be "<resultCount>"Examples:
| searchTerm | resultCount | | cat | 5 | | dog | 0 |
Running the precompiler would result in the following feature files:
Scenario Outline:
Given the Search page is opened
And "<searchTerm>" is typed into the Search Field
And Search is executed
Then Search Result Count should be "<resultCount>"Examples:
| searchTerm | resultCount | | cat | 5 |
Options/Variants
The tag's name is used to mark a scenario with the number of rows selected.
Whether any limit is needed for the selected rows (number of rows).
Whether there is a default number of rows selected if the value is not set in the tag (1).
Additional context
The text was updated successfully, but these errors were encountered:
Summary
The "Random Example" precompiler would take a Scenario Outline containing multiple rows of Examples and change the Scenario Outline, so a given number of examples are executed.
Use cases
It would be a solution for when a tester wants to increase coverage but decrease execution time: they can add all the relevant Examples to the Scenario Outline. This precompiler selects a few Examples to be used in the build. This way, all cases are covered and represented, but not in each build.
Example
Take the following (example) feature file (part):
Running the precompiler would result in the following feature files:
Options/Variants
The tag's name is used to mark a scenario with the number of rows selected.
Additional context
The text was updated successfully, but these errors were encountered: