postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.88k stars 1.16k forks source link

Not able to generate HTML file Report #645

Closed nitinEd closed 8 years ago

nitinEd commented 8 years ago

ran command newman run /Users/nimeshshah/Desktop/api.edcast.com.postman_collection.json --reporters html --reporter-html-export

but didn't find any HTML report file in /usr/local/lib/node_modules/newman please help me out me with this

kunagpal commented 8 years ago

Hey @nitinEd, you would also have to provide a path for the HTML report to be created at, like so: newman run /Users/nimeshshah/Desktop/api.edcast.com.postman_collection.json --reporters html --reporter-html-export <path-to-html-report.html>

If no path is specified, the report shall be generated within the directory from where Newman was run, and not within the installation directory of Newman itself.

nitinEd commented 8 years ago

Thanks for the info.But when I ran the above command I didn't get any HTML report and newman didn't run any test. Please find the attached screenshot screenshot

kunagpal commented 8 years ago

@nitinEd For the above command, no output is expected, as the CLI reporter was not specified along with HTML (--reporters cli,html).

nitinEd commented 8 years ago

@kunagpal thnx buddy worked for me 👍

edwinboy0312 commented 6 years ago

@kunagpal Hey is there anyway i can trim the name of the report generated to just 'newman-run-report' , i dont want the file name to be suffixed with the timestamp.

kunagpal commented 6 years ago

@edwinboy0312 You can append the --reporter-html-export newman-run-report.html option to your newman run command in order to achieve this.

edwinboy0312 commented 6 years ago

@kunagpal Thanks ...It worked.