Given, When, and Then steps

Steps in a scenario are grouped into one sections: Given, When, and Then. Each section starts with a keyword (Given, When, or Then) and a step. If multiple steps are needed for the section, the subsequent steps start with the keyword And.

Given steps

Given steps sets up the state of the system for this scenario before any behavior is executed. For example:

Given a Personal Auto submission
And the job status is "Quoted"

When steps

When steps describe the behavior to execute. For example:

When I apply the pending changes to the unbound renewal
And I recall "Renewal term" as the current job

Then steps

Then steps describe the outcome expected as a result of the behavior. For example:

Then the submission status should be "Bound"
And the status of the contingency is "Pending"