A Feature consists of one or more Scenarios A Scenario may have Background conditions that need to be met up front A Gherkin Scenario consists of Given (precondition), When (action) and Then (assertion) statements, in that order:When-Then pairs are called Behaviors.
- Given (a precondition unique to this scenario)
- And (maybe a second precondition too)
- When (an action is taken)
- And (maybe an additional action too)
- Then (an outcome occurs)
- And (maybe a secondary outcome as well)
- But (not this outcome)