Automation Web

Using BDD Method & Page Object Model

Behavior Driven Development (BDD) Method

A product development method based on product behavior from a user perspective.

Scenarios in the BDD Method

When creating a scenario, we can use three keywords, namely Given, When, and Then.

Gherkin Syntax

Gherkin is a grammar rule that creates text with a certain structure, so that it can be directly understood by Cucumber or other tools. Gherkin files are saved with a file extension .feature
Gherkin has keywords for reading scenarios such as Feature, Given, When, Then and others.

Page Object Model

Design Pattern that groups elements on a page or screen.

Benefits of Using POM

  • - Independent, each page is created in a different class and is not related to each other.
  • - Readability, makes it easier for us to improvise and read automation code
  • - Maintainability, the code maintenance process will be easier
  • - Reusability, can reuse page classes if needed in different test steps

Page Object Model Design in Katalon Studio

Demo Automation Register Page



Demo Automation Login Page