Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghoshasish99/serenityrestassured
Rest Assured with Serenity and Cucumber
https://github.com/ghoshasish99/serenityrestassured
apitesting restassured restassured-cucumber-framework serenity-cucumber serenity-restassured
Last synced: about 4 hours ago
JSON representation
Rest Assured with Serenity and Cucumber
- Host: GitHub
- URL: https://github.com/ghoshasish99/serenityrestassured
- Owner: ghoshasish99
- Created: 2020-01-31T18:16:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-08T19:36:21.000Z (over 3 years ago)
- Last Synced: 2023-03-06T15:51:17.596Z (over 1 year ago)
- Topics: apitesting, restassured, restassured-cucumber-framework, serenity-cucumber, serenity-restassured
- Language: Java
- Homepage:
- Size: 2.9 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RestAssured with Cucumber - Serenity
[![RestAssured-Cucumber-Serenity](https://github.com/ghoshasish99/SerenityRestAssured/actions/workflows/maven.yml/badge.svg)](https://github.com/ghoshasish99/SerenityRestAssured/actions/workflows/maven.yml)
### Getting started:
3 main maven dependencies are as follows :```xml
net.serenity-bdd
serenity-core
${serenity.version}
net.serenity-bdd
serenity-cucumber
${serenity.cucumber.version}
net.serenity-bdd
serenity-rest-assured
${serenity.version}
```
Working folder structure :
```
src
|-- test
|-- java
|-- steps
|-- steps.java (individual steps are captured)
|-- stepdefinitions.java (stepdefinitions are captured)
|-- TestRunner.java
|-- resources
|-- features
|-- .feature (feature files)
|-- payloads
|-- .json (request payloads)
|-- pom.xml```
The TestRunner file is simple :
```java
import cucumber.api.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;import org.junit.runner.RunWith;
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(features= "src/test/resources/features/payments.feature")public class TestRunner {
}
```
You can study this repository for a detailed implementation