BDD with PageObject

Add feature to test division in calculator

Create calculator division feature file as following:

touch division.feature

alt text

Edit the feature file to contain following content:

Feature: Division
In order to avoid silly mistakes
Cashiers must be able to calculate a fraction

Scenario: Regular numbers

* I have entered 3 into the calculator
* I have entered 2 into the calculator
* I press divide
* the result should be 1.5 on the screen

The steps in feature with asterisk will be ignored and marked as pass when cucumber runs.

alt text