Closed nitinEd closed 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.
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
@nitinEd For the above command, no output is expected, as the CLI reporter was not specified along with HTML (--reporters cli,html
).
@kunagpal thnx buddy worked for me 👍
@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.
@edwinboy0312 You can append the --reporter-html-export newman-run-report.html
option to your newman run
command in order to achieve this.
@kunagpal Thanks ...It worked.
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