Gherkin Language

5 minutes 5 Questions

Gherkin, often used in BDD, is a simple, domain-specific language for describing business behavior without getting into details of implementation. It provides a uniform pattern for specifying behavior, and its syntax is easily readable and understandable by business stakeholders, analysts, testers …

Test mode:
PMI-ACP - Gherkin Language Example Questions

Test your knowledge of Gherkin Language

Question 1

You reviewed a colleague's Gherkin scenario, but it does not follow the Given-When-Then syntax structure. It is written as: 'Given there is a field to enter data, The data is entered, The database is updated with the entered data.' How would you provide feedback?

Question 2

Your team has been engaged in developing a login feature. One of the feature scenarios was written in Gherkin as: 'Given I am on the login page, When I enter valid credentials, Then I would be logged in.' The scenario lacks information around the action of login. What should you do?

Question 3

The Given-When-Then structure is not available in your Gherkin specification language. What should you do?

More Gherkin Language questions
10 questions (total)