This project is an example of UI automated functional test for a borrowing calculator using Selenium and Cucumber.
Test scenarios are described in the feature file located here .cucumber-test-sample/features/Calculator.feature.
You need to have Java 8 JDK installed along with maven.
This test runs in Chrome browser.
Change location of 'chromedriver' as per your file system in below file:
cucumber-test-sample/src/test/java/stepDefinition/TestScenario.java
This line : System.setProperty("webdriver.chrome.driver", "/Users/anupam/Desktop/Automation Framework/chromedriver");
To run the tests locally with Firefox, install GeckoDriver from here and add its location to your system PATH.
To install all dependencies, run
$ mvn clean install
$ mvn test
After tests are run, reports are generated at : /target/cucumber-reports/index.html