Introduction to Gherkin ! New way of testing !
Hello Everyone ,
In this blog we will discuss about Gherkin Language which we used in BDD for writing test cases.we will take a look on below topic.
Gherkin’s grammar is defined in the parsing expression grammars. It is Business Readable, DSL created specifically for behavior descriptions without explaining how that behaviour is implemented. Gherkin is a plain English text language.
Gherkin serves two purposes — documentation and automated tests. It is a whitespace-oriented language that uses indentation to define structure.
The Gherkin includes 60 different spoken languages so that we can easily use our own language.The parser divides the input into features, scenarios and steps.
Here is a simple example of Gherkin:
When we run this feature this gives us a step definition.In Gherkin, each line is start with a Gherkin keyword, followed by any text you like.
The main keywords are:
View original post 198 more words