Gherkin is a set of grammar rules that makes plain text structured enough for Cucumber to understand. The scenario above is written in Gherkin.
Gherkin serves multiple purposes :
* Unambiguous executable specification
* Automated testing using Cucumber
* Document how the system actually behaves
The Cucumber grammar exists in different flavours for many spoken languages so that your team can use the keywords in your own language.
Gherkin documents are stored in .feature
text files and are typically versioned in source control alongside the software.