Album Cover

Specifying Scenarios Safely None

Close Preview
Women folklore working in assembly line
Most scenarios have three parts:
Given: Set up a situation
When: Some interesting triggering event happens
Then: Verify that the system is in a new state
The "Given" can describe either the state of the system,
or the series of steps that led to that state (or both).
The most basic scenarios describe
a series of actions and their effects.
Scenarios with many steps can be broken down so that we create separate scenarios, each focused on one key step.

Scenario: Patron checks out with low fines
   Given the patron has accumulated fines of $1.99
     And the patron attempts to check out a book
    When the patron declines to pay
    Then the patron should have checked out the book
     And the patron should have accumulated fines of $1.99
(Reading...)
| Tweet...
Page rating: | Rate this Page