forked from nbehave/NBehave
-
Notifications
You must be signed in to change notification settings - Fork 0
Background
MorganPersson edited this page Nov 26, 2012
·
2 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