What is BDD? How it’s important in Automation Testing?

You might have heard this word BDD many times in Automation Testing and Agile conferences and you might have thought what really it is? Here is  the elaborative description about what is BDD and how it improves our Automation testing.

BDD is nothing but Behaviour Driven Development. It’s a extension of Test Driven Development and it makes use of Domain specific simple language.

It’s a framework/concept/whatever in which simple  English statements are converted into executable Automation testcode.  In laymans words

It’s closely binding requirements into Executable tests.

 

Automated TestCase in BDD would look like

In the above example each every sentence is known as a “Step”  and each step will have a method in the Stepfile as shown below

So what we are actually referring to a step is nothing but a piece of Selenium Automation Code.  So with BDD we can have a Automation testcase that is more similar to  our Manual TestCase.

We will see more about BDD in the coming posts.

 

 

 

You may also like...