June 2017
Intermediate to advanced
256 pages
5h 38m
English
Scenario is another Gherkin keyword that helps express the business scenario under test. It captures the high-level intent of the scenario. The typical syntax is as shown:
Scenario: Scenario name

A feature can be broken down into multiple scenarios, and these scenarios constitute business use cases together. If you add up all the scenarios' behavior, it should be equivalent to the feature behavior itself.
So, a scenario basically contains the steps run on the system under test and gives feedback. For a scenario to pass in Cucumber, all steps under it should pass. Each scenario can have multiple steps describing the behavior. There ...
Read now
Unlock full access