-
Notifications
You must be signed in to change notification settings - Fork 20
Background
Leo Arnold edited this page May 22, 2017
·
3 revisions
Background allows you to add a common context to the scenarios in a single feature. A Background is much like a scenario containing a number of steps. The difference is when it is run. The background is run before each of your scenarios.
Example:
Feature: Support for background sections
Background: can have title
Given this background section declaration
And this one
Scenario: Running a feature file with a background section
Given this scenario under the context of a background section
When the scenario with a background section is executed
Then the background section steps should be called before this scenario