Opened from disk

This site is meant to be served, so its folder tree and search do not work when a page is opened from disk. Run ghg serve in the folder of your ghg.toml, or serve the site's folder with any web server, then open the address it gives.

Skip to content
Theme

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.

Note: in the Gherkin feature file, this scenario is

  1. Given a member named "Ana" with card number 1024

From the scenario

  1. Given the study room "Garden" is free at 10:00
  2. When "Ana" books "Garden" at 10:00
  3. Then "Garden" is booked for "Ana" at 10:00

Note: in the Gherkin feature file, this scenario is

  1. Given a member named "Ana" with card number 1024

From the scenario

  1. Given "Bea" booked the study room "Garden" at 10:00
  2. When "Ana" books "Garden" at 10:00
  3. Then the booking is refused with "Garden is booked at 10:00."

Note: in the Gherkin feature file, this scenario outline is

  1. Given a member named "Ana" with card number 1024

From the scenario

  1. Given the study room "<room>" is free at 10:00
  2. When "Ana" books "<room>" at 10:00
  3. Then "<room>" is booked until <until>

Runs once for each row of these examples:

About this note

Gherkin lets authors use different words for the same kind of block. For example, Scenario and Example both define a scenario, and Examples and Scenarios both define examples. This site names every block by its kind, so pages read the same whichever word was used. The note only tells you which word the feature file uses; it changes nothing about the block.