https://github.com/ferdyciputra/serenity-starter-project-web
This is Starter Project Web Automation Testing Using Selenium, Cucumber, JUnit and Serenity BDD for Reporting
https://github.com/ferdyciputra/serenity-starter-project-web
automated-testing cucumber java junit selenium serenity serenity-bdd
Last synced: 2 months ago
JSON representation
This is Starter Project Web Automation Testing Using Selenium, Cucumber, JUnit and Serenity BDD for Reporting
- Host: GitHub
- URL: https://github.com/ferdyciputra/serenity-starter-project-web
- Owner: ferdyciputra
- Created: 2023-12-28T09:29:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-27T13:04:05.000Z (11 months ago)
- Last Synced: 2025-07-27T15:17:16.426Z (11 months ago)
- Topics: automated-testing, cucumber, java, junit, selenium, serenity, serenity-bdd
- Language: Java
- Homepage:
- Size: 292 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serenity-starter-project-web
This Project Web Automation Testing Using Selenium, Cucumber, JUnit and Serenity BDD for Reporting
## Required
1. Download [Java OpenJDK 11](https://jdk.java.net/java-se-ri/11)
[Tutorial Installation Java in Windows](https://www.petanikode.com/java-windows/)
2. Download [Maven](https://maven.apache.org/download.cgi?Preferred=ftp://ftp.osuosl.org/pub/apache/)
`*If your computer already installed Java and Maven, you can skip step number 1 and 2.`
## Added New Scenario BDD
In order to added some Scenario BDD, we can create new file feature in directory `src/test/resources/features`
## Writing the step definitions (Breaking Down Scenario BDD Into Steps)
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`
## Writing the Page Object Class
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`
## Running Test Case with Configure Headless Mode
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
```
## Running Test Case with Default Environment
```
mvn clean verify
```
## Running Test Case with Specific Environment (file `serenity.conf`)
file `serenity.conf` located in folder `src/test/resources`
```
mvn clean verify -Denvironment=value
```
## Running Test Case with Specific Tags
If you want to run only certain scenarios or feature files based on tags (e.g., `@add_cart_feature`), you can do so using the command line by specifying the tag with `-Dtags`.
```
mvn clean verify -Dtags=@add_cart_feature
```
## See Report Serenity BDD
- file report located in `target/site/serenity/index.html`

- Specific Test Details

