What Is the Gherkin Language?

by Nataliia Vasylyna | April 12, 2017 8:29 am

Gherkin is a domain specific language that is comprehensible to humans. Its main aim is to describe the behavior of the product system. In order to specify the document structure, this language uses indentation. It is a line-oriented language like Python. Every line starts with one of the key words and describes one step.

What are the advantages of Gherkin?

Besides that, Gherkin can be used as the project documentation and serve as automated tests[2]. As it was mentioned, Gherkin has several keywords. Here are some of them:

Every feature includes several scenarios, while every scenario consists of the list of specified steps. At the beginning of every step, there is one key word – Given, When, Then, But or And.
The specialists who perform functional testing[3], system checking, unit testing[4] or acceptance testing should be aware of Gherkin too.

Related Posts:

Endnotes:
  1. software testing: http://qatestlab.com/services/We-Are-Professionals-in/software-product-testing/
  2. automated tests: http://qatestlab.com/services/We-Are-Professionals-in/automated-testing/
  3. functional testing: http://qatestlab.com/services/We-Are-Professionals-in/functional-testing/
  4. unit testing: http://qatestlab.com/services/Step-by-Step/Unit-Testing/
  5. Most expensive bugs of 2016: http://blog.qatestlab.com/2017/06/27/most-expensive-bugs/
  6. Software failure: how to avoid Murphy’s law?: http://blog.qatestlab.com/2017/06/06/software-product-failures/
  7. What does testing on virtual machines hide?: http://blog.qatestlab.com/2017/05/22/virtual-machines-testing/
  8. Security Testing Tools You Need to Know About: http://blog.qatestlab.com/2017/04/26/security-testing-tool/
  9. Why Is It Worth to Choose Software Tester Career?: http://blog.qatestlab.com/2017/04/24/software-tester-career/

Source URL: http://blog.qatestlab.com/2017/04/12/gherkin-language-notion/