본문 바로가기
🎸 기타

[Cucumber] Gherkin

by 냥장판 2021. 4. 3.
반응형

Gherkin

In order for Cucumber to understand the scenarios, they must follow some basic syntax rules, called Gherkin.
Gherkin is a set of grammar rules that makes plain text structured enough for Cucumber to understand.
Gherkin serves multiple purposes:

  • Unambiguous executable specification
  • Automated testing using Cucumber
  • Document how the system actually behaves


Step definitions connect Gherkin setps to programming code.

  • Given
  • When
  • Then
  • And
  • But


e.g.

반응형

댓글