Reputation: 33
I'm new to Cucumber and RestAssured framework.
I want to generate reports using RestAssured with cucumber in my project.
Please let me know if you need any more information on this regard.
Upvotes: 1
Views: 5803
Reputation: 69
Cucumber of version 6.7.0 and above provides Cucumber Report Service. Follow below-mentioned steps:-
You need to add Cucumber-jvm of version 6.7.0 and above in your pom.xml.
You need to create a Cucumber.properties file in src/test/resources and mention this instruction in that cucumber.properties file - cucumber.publish.enabled=true. When you will run the cucumber tests from command line using mvn test, a cucumber report will be generated. To know the more details, can refer this link
Upvotes: 1
Reputation: 118
RestAssured does not provide you reporting options. However if you are using Maven then go for surefire plugin report (add it as dependency to your POM.xml) and it will help you pull in reports based on the junit tests that you run.
Else, Serenity framework combined with Rest Assured provides very detailed reports infact it logs all the requests and responses intuitively. This guide will help integrating serenity with rest assured.
Upvotes: 0