This time we bring you a blog article about Cucumber, Selenium and Integration with Azure DevOps, let's get started and welcome to the journey to learn Cucumber.
The blog post will cover the following topics:
Setup Cucumber with Selenium in Eclipse
Eclipse Integration with Azure DevOps
Cucumber is a tool that supports Behaviour-Driven Development(BDD). It lets us define application behavior in plain meaningful English text using a simple grammar defined by a language called Gherkin. Cucumber itself is written in Ruby, but it can be used to “test” code written in Ruby or other languages.
Cucumber is one of the most powerful tools. It offers us the real communication layer on top of a robust testing framework. The tool can help run automation tests on wide-ranging testing needs from the backend to the frontend. Moreover, Cucumber creates deep connections among members of the testing team, which we hardly found in other testing frameworks.
What is Gherkin? It is a simple, lightweight, and structured language, which uses regular spoken language to describe user requirements and scenarios. Examples of regular spoken language are English, French, and around 30 more languages. Gherkin contains a set of syntax/keywords
Feature: Defines the feature (generally a user story)
Given: Specifies the pre-condition of the test
And: Defines additional conditions of the test
Then: States the post-condition/expected result of the test
Key points to note:
The test is written in plain English, which is common to all the domains of your project team.
This test is structured that makes it capable of being read in an automated way. Thereby creating automation tests at the same time while describing the scenario.