Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML report generation in postman

I want to generate HTML report for APIs with the help of postman application.

I want to run my collection and environment simultaneously and generate HTML report of pass and failure results.

please guide me.

like image 540
Amit Pal Avatar asked Nov 15 '25 05:11

Amit Pal


1 Answers

  1. Install npm package newman-reporter-htmlextra for creating reports.

    npm install -g newman-reporter-htmlextra

  2. Add parameters to the newman execution command to use this npm package to create html file(index.html) containing details of execution.

    newman run xyz.postman_collection.json -e env.postman_environment.json -r htmlextra --reporters cli,junit,htmlextra --reporter-htmlextra-export index.html

  3. Html file with detailed execution report is created in the collection folder.

like image 56
manistiw Avatar answered Nov 17 '25 21:11

manistiw