Feature: Booking a study room
Gherkin accepts other words for some of its keywords. This file uses
them: "Example" for a scenario, "Scenario Template" for a scenario
outline and "Scenarios" for an outline's examples. They mean exactly
what "Scenario", "Scenario Outline" and "Examples" mean.
- Given a member named "Ana" with card number 1024
Note: in the Gherkin feature file, this scenario is
- Given a member named "Ana" with card number 1024
From the scenario
- Given the study room "Garden" is free at 10:00
- When "Ana" books "Garden" at 10:00
- Then "Garden" is booked for "Ana" at 10:00
Note: in the Gherkin feature file, this scenario is
- Given a member named "Ana" with card number 1024
From the scenario
- Given "Bea" booked the study room "Garden" at 10:00
- When "Ana" books "Garden" at 10:00
- Then the booking is refused with "Garden is booked at 10:00."
Note: in the Gherkin feature file, this scenario outline is
- Given a member named "Ana" with card number 1024
From the scenario
- Given the study room "<room>" is free at 10:00
- When "Ana" books "<room>" at 10:00
- Then "<room>" is booked until <until>
Runs once for each row of these examples:
-
Note: in the Gherkin feature file, these examples are
room until Garden 11:00 Attic 11:00 - Given the study room "Garden" is free at 10:00
- When "Ana" books "Garden" at 10:00
- Then "Garden" is booked until 11:00
- Given the study room "Attic" is free at 10:00
- When "Ana" books "Attic" at 10:00
- Then "Attic" is booked until 11:00
-
Note: in the Gherkin feature file, these examples are
room until Hall 12:00 - Given the study room "Hall" is free at 10:00
- When "Ana" books "Hall" at 10:00
- Then "Hall" is booked until 12:00