Integrate Rest Assured and Allure

Integrate Rest Assured and Allure

Rest Assured and Allure Report is two popular tool for testing.Rest Assured is using for API testing and Allure Report is using for create detailed reports about tests.To see our request and response more detailed using this tools we need to add a line to

our Rest Assured tests.

.filter(new AllureRestAssured())

First add maven dependeny in your pom.xml file.

<!-- -->

Simple example for how to use

public void planetsCheck() {
    Response response = given()
            .filter(new AllureRestAssured())
    Assert.assertEquals(response.statusCode(), 200);

Second way is with RequestSpecBuilder

spec = new RequestSpecBuilder()
                .addFilter(new AllureRestAssured())

To create our report first run these command after test run.

mvn clean test allure:report

Our test report should be located in allure-report folder and should look like below.


Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now