Behavior Driven Development(BDD) Test FrameWork Design Pattern

The Design pattern of keyword Driven framework and BDD Test Framework is the same.

But the only difference in the BDD Test framework is having steps definition package in place of tests package and feature files in the project folder.

What is POM(Page Object Model)?

POM or Page object model is a design pattern which we follow in test automation to create a framework for any application under test.


How does it work

In this we used to create a page class for each and every screen then we would create variables and assign all the locator values to it for each web page in that created page class.

We will then create methods in the same page class for required operation on WebElements.


Pages in Framework

Advantage of POM

As it maintains WebElement locator values in pages so that it will be very easy to modify whenever we require.


Feature files and steps package

Now, We need to create feature files under the project folder and create step definition files for respective feature files under the steps package.

Let us see in the next chapter how to design framework structure.


Feature file in Framework