it:ad:gherkin:home

IT:AD:Gherkin

Summary

  • Feature: to describe a feature, and collect together multiple related Scenarios.
    • Scenario (or Example)
      • Given
      • [And]
      • When
      • Then
      • [And]
      • [But] (not)

Example:


Feature: Guess the word

  Scenario: Maker starts a game
    When the Maker starts a game
    Then the Maker waits for a Breaker to join

  Scenario: Breaker joins a game
    Given the Maker has started a game with the word "silky"
    When the Breaker joins the Maker's game
    Then the Breaker must guess a word with 5 characters

  • /home/skysigal/public_html/data/pages/it/ad/gherkin/home.txt
  • Last modified: 2023/11/04 03:24
  • by 127.0.0.1