- It's difficult to retest functions manually each time application get updated.
- A spoken language might be helpful for testing and generating reports.
What is cucumber
Briefly:Cucumber is a tool that supports Behaviour-Driven Development(BDD).
What is Selenium
Briefly: Selenium automates browsers
Prerequisites
- download chrome webdrivers - check your chrome version first
Cucumber reads executable specifications written in plain text and validates that the software does what those specifications say(Scenario).
Basic Scenario
Scenario: Breaker guesses a word
Given the Maker has chosen a word
When the Breaker makes a guess
Then the Maker is asked to score
Update driverPath value in config.properties
ex.
# config.properties
driverPath=D:\\driver\\chromedriver_win32\\chromedriver.exe
Run all the tests
mvn clean verify
or mvn clean integration-test
Run specific tests
mvn clean verify -Dcucumber.filter.tags="@example"
Check reports
/target/reports/cucumber-reports.html
/target/reports/index.html