This Project Web Automation Testing Using Selenium, Cucumber, JUnit and Serenity BDD for Reporting
-
Download Java OpenJDK 11 Tutorial Installation Java in Windows
-
Download Maven
*If your computer already installed Java and Maven, you can skip step number 1 and 2.
In order to added some Scenario BDD, we can create new file feature in directory src/test/resources/features
In order to translate the steps from Scenario BDD into executable actions, we write Java classes called Step Definitions
in directory src/test/java/steps
Page Objects are a way of isolating the implementation details of a web page inside a class, exposing only
business-focused methods related to that page. We can create new Page Object file in
directory src/test/java/pageobjects
You can configure your test running headless mode or not.
in file serenity.conf
you can modified field headless.mode
with value true
or false
.
file serenity.conf
located in folder src/test/resources
.
headless.mode = true
or
headless.mode = false
mvn clean verify
file serenity.conf
located in folder src/test/resources
mvn clean verify -Denvironment=value
- file report located in
target/site/serenity/index.html
- Specific Test Details