Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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