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.
First add maven dependeny in your pom.xml file.
<!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-rest-assured -->
Simple example for how to use
Second way is with RequestSpecBuilder
spec = new RequestSpecBuilder()
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.