- Download the repository and start writing feature files and step definitions
- This is just a template and customizable according to your project requirement
- Configured chrome and firefox browser, and it is extendable to other selenium supported browsers
- Integrated the allure report, so the quality of dashboard/report will be nice
Dillinger uses a number of open source projects to work properly:
- Maven - build and project configuration
- Selenium - An open source UI automation tools
- Cucumber-JVM: A library to support cucumber with java
- Allure-Report - To generate html dashboard report
- Junit - Test runner
- Java - Programming language for writing test scripts
This requires Java 8+ to run and Maven
Install the dependencies and devDependencies and start the server.
cd Java_BDD_Maven_Junit_Selneium_boiler_plate
mvn clean install
Step definitions can be saved at location: /src/test/java/org/steps/page1...
Feature files can be saved at location: /src/test/resources/org/features....
Note:The above paths are for reference and can be saved at your preferred path within the src/test/ folder.
mvn clean test -Dbrowser.type=chrome/firefox -Dbrowser.chrome.path="" browser.firefox.path=""
One need to provide the chromedriver, geckodriver path in as a input when executing it from console
Note: This approach will be changed later
The target folder will contain default generated reports- json/html
Using Allure:
Install allure from [Allure-Report] and execute the below command:
"allure serve /home/path/to/project/target/surefire-reports/"