Description: This has a sample BDD test for https://e.ggtimer.com/
Dependencies:
- Java >= 1.8 should be installed.
- Maven binaries should be installed.
- Chrome browser should be installed.
Instructions to run:
- Clone the repo (https://github.com/avinashawast/EggTimerBDD.git)
- Navigate to $PROJECT_HOME (EggTimerBDD folder)
- Run below command: mvn clean install
Alternatively, we can also run by opening the project in any IDE, and follow below instructions:
- Right Click on Project.
- Click 'Run As'
- Select Maven Install
Highlights:
- Page Factory is used.
- Scenario Outline with Examples is used in feature file for BDD.
- Configurations can be defined in config.properties.
Imporvements:
- Other browsers support can be extended.
- Better logging support can be added.
Bugs:
- https://e.ggtimer.com/ accepts negative numbers also
- Accepts string with space, like " morning" [Space is added before morning]
- Doesn't work for very large numbers eg: 99999999999999999
Reports link (Will only be available for a day) https://reports.cucumber.io/reports/b03cb68d-e09d-4396-ae93-79ba6c06074f