Show Menu
Cheatography

SpecFlow cheat sheet Cheat Sheet (DRAFT) by

A cheat sheet of Gherkin keywords and SpecFlow hooks

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Gherkin keywords

Feature
A high-level descri­ption of the software feature that is being tested
Descri­ption
Rule
Background
Scenario
Scenario Outline
Given
When
Then
And
But
Example
 

Hooks

[Binding]
Marks the class as a binding class - linking the methods to the feature steps
[Befor­eTe­stRun]
Before­Fea­tur­e/A­fte­rFe­ature
[Befor­eSc­ena­rio­]/[­Before]
[After­Sce­nar­io]­/[A­fter]
[Befor­eSc­ena­rio­Blo­ck]­/[A­fte­rSc­ena­rio­Block]
[Befor­eSt­ep]­/[A­fte­rStep]