Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-12T12:47:14.000Z (11 months ago)
- Last Synced: 2024-02-12T13:51:32.625Z (11 months ago)
- Topics: automated-testing, cucumber, java, junit, selenium, serenity, serenity-bdd
- Language: Java
- Homepage:
- Size: 288 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
```## See Report Serenity BDD
- file report located in `target/site/serenity/index.html`
![Example Serenity Report](./src/test/resources/assets/example-serenity-report-01.png)
- Specific Test Details
![Example Serenity Report](./src/test/resources/assets/example-serenity-report-02.png)
![Example Serenity Report](./src/test/resources/assets/example-serenity-report-03.png)