What is the Scenario Outline keyword in Cucumber?

Rest AssuredDynamic ProgrammingProgramming

Scenario Outline is used to replicate the same Scenario with a different data set. Writing the same tests with different values is cumbersome and time taking. For instance,

We can club the above two scenarios with the Scenario Outline.

Thus, we see that a Scenario Outline should be accompanied by keyword Examples. A Scenario Outline is executed once for each of the rows appearing below the Examples segment.

Also, we have seen that the Given step has the <> delimiter. It points to the header of the Examples table. SpecFlow shall put the values within this table before the task of matching a step with a Step Definition.

raja
Updated on 18-Nov-2021 12:39:59

Advertisements