- Java 11 (JDK) installed on the machine.
- Java IDE preferably Intellij Idea.
- Import the project as a gradle project.
- To run all the implemented tests use command:
./gradlew clean test -DCUCUMBER_FILTER_TAGS="@implemented"
. - To run the tests based on smoke or regression tests we can use:
./gradlew clean test -DCUCUMBER_FILTER_TAGS="@smoke"
. (@regression
for regression tests) - To run the tests based on a specific feature we can use:
./gradlew clean test -DCUCUMBER_FILTER_TAGS="@login"
. (Feature tags are on top of the feature file for each feature) - To run the tests on firefox browser use:
./gradlew clean test -DCUCUMBER_FILTER_TAGS="@login" -Dwebdriver.driver=firefox
. Currently, chrome runs by default without passing parameterwebdriver.driver
. - These tests can be run headless too, for that we need to use command:
./gradlew clean test -DCUCUMBER_FILTER_TAGS="@login" -Dheadless.mode=true
. - The reports for the tests are available at the location
target/site/serenity/index.html
.
- This framework was developed on Mac OS.
- Some tests use @notimplemented tags intentionally to make use of tags while running tests.