In this blog
we are going to learn how to generate HTML Report for doing API Testing with the help of postman Collection
using Newman. Before Moving Further I would highly recommend you to read this blog, to understand how to execute postman collection through the command line.
To know more
about this report. Please check their official page.
To Generate
HTML Report for postman collection we need to follow below steps:
1) Install Newman Reporter using below
command.
2) Install Newman globally.
3) Now in our Postman, Click on Postman
Collection for which we want to report, Export and save postman collection on the local machine.
4) To generate a report inside our project postman collection folder. We need to use newman
run "Collection Name" -r html
After this
we will see one new folder will be created inside our postman collection and
inside it, we would be able to see the generated reports.