Scenario Outlines

Scenario Outlines are similar to regular Scenarios except that a Scenario Outline is executed multiple times. A Scenario Outline has an Examples section after the last Step in the Scenario. The Examples section is a list of fields and values that get substituted for each execution of the Scenario. The values in the Example section are used to replace matching tokens in the Scenario Outline. A token has a format of <FIELD NAME>. A Scenario Outline gets executed once for each row of values in the Examples section.

The image below shows an example of a Cycle Scenario Outline being repeated using different data values defined in the Examples section.

Example Scenario Outline

Note: The above Scenario Outline would fail on the 3rd instance where Height does not equal Width but Shape matches "Square".

results matching ""

    No results matching ""