This project aims to give an inspiring or sample of automation test framework that uses Selenium and Cucumber with Java as the programming language.
You can see pieces of framework components that build on every git branch.
For example, you want to see how Hooks
is implemented in the framework.
Just select the Hooks
branch then you will see the magic.
If you want to go back to the current branch, you can select main
as the default branch.
This project using 2 main tools, Selenium and Cucumber.
On the other hand, I using some of the tools that support this great framework.
The complete list of tools, you can see in the pom.xml
file.
- Java Development Kit
- Maven
- WebDriver, using ChromeDriver
- Clone the repository from your fork to this directory
- Open the project using any Java IDE
- Run the tests with the script below
$ mvn clean install
- If you want to run the specific test, use the cucumber tags like this
$ mvn clean install -Dcucumber.filter.tags="@REPLACE_WITH_ANY_TAGS_THAT_YOU_WANT"
- Test report automatically generated on
target
folder after finished the test execution - See test report from
target/cucumber-reports/advanced-reports/cucumber-html-reports/overview-features.html
- You can also share your Cucumber Report with another person at https://reports.cucumber.io, just go to
src/test/resources/cucumber.properties
then change the value to betrue
cucumber.publish.enabled=true
- For more information about reports cucumber you can go to https://reports.cucumber.io/docs/cucumber-jvm