Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Example of Gherkin Language

Category: BDD Cucumber

As Gherkin is a structured language it follows some syntax let us first see a simple scenario described in gherkin.

Feature: Search feature for users
This feature is very important because it will allow users to filter products

Scenario: When a user searches, without spelling mistake, for a product name present in inventory. All the products with similar name should be displayed

Given User is on the main page of www.myshopingsite.com
When User searches for laptops
Then search page should be updated with the lists of laptops

Leave a Reply

Your email address will not be published. Required fields are marked *