Background – Behavior-Driven Development (BDD)
In the Agile/DevOps environment, the features of the product/application being developed are co-engineered by business analysts, vendors, development, and the testing team. Given the engagement structure where various technical and non-technical members work together, a plain English construct for scripts comes in handy. Such constructs have little structure, and are very easy to learn even by non-programmers, yet structured enough to allow precise description of test examples to show business flows.
One such language using plain English construct is Gherkin. One can develop the tests using Gherkin languages and create a .feature
file containing the executable specifications for the behaviors expected. Then a tool like Cucumber can be used to execute/test the features.
In this section, we will touch upon a plain English-like construct of the Gherkin language for BDD in the Agile/DevOps environment and discuss various activities and roles...