Improve Newman Documention for Custom Reports



Thanks, @gopikrishna4595
It is working perfectly now.
Thanks for your help.


Hi @gopikrishna4595

Just want to update one issue that I have faced with this custom report template

If something goes wrong and the test didn’t happen say for one request out of many requests present in the collection, the report generation could result in error and it wont generate the report.

For example, please consider below flow

  1. I have a POST request in my postman collection, and am trying to do a file upload using the rest endpoint

  2. I am running my collection with Newman and collection json is updated with a wrong path for the file to choose for the upload purposefully

  3. So the test can not succeed because there is no such file exist

  4. In this case test gets aborted and I see below error

  5. Hence report will not be generated . other tests in the collection might be passing/failing. we will not get information about them here

  6. This looks not happening with the default Newman report template, and it give report, summary table etc

executionId = +;
TypeError: Cannot read property ‘id’ of undefined
at C:\CloudPay Work Station\PostManTestingApp\node_modules\newman\lib\reporters\html\index.js:65:83
at C:\CloudPay Work Station\PostManTestingApp\node_modules\lodash\lodash.js:13805:16
at arrayEach (C:\CloudPay Work Station\PostManTestingApp\node_modules\lodash\lodash.js:516:11)
at Function.transform (C:\CloudPay Work Station\PostManTestingApp\node_modules\lodash\lodash.js:13804:43)
at EventEmitter. (C:\CloudPay Work Station\PostManTestingApp\node_modules\newman\lib\reporters\html\index.js:62:28)
at EventEmitter.emit (C:\CloudPay Work Station\PostManTestingApp\node_modules\eventemitter3\index.js:203:33)
at done (C:\CloudPay Work Station\PostManTestingApp\node_modules\newman\lib\run\index.js:249:29)
at C:\CloudPay Work Station\PostManTestingApp\node_modules\postman-runtime\lib\backpack\index.js:56:34
at PostmanCollectionRun._process (C:\CloudPay Work Station\PostManTestingApp\node_modules\postman-runtime\lib\runner\run.js:161:13)
at PostmanCollectionRun. (C:\CloudPay Work Station\PostManTestingApp\node_modules\postman-runtime\lib\runner\run.js:166:76)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)

Thanks & Warm Regards


Hi Gopi. I have replaced these files(C:\Users\sudhir_swain\node_modules\newman\lib\reporters\html) but still not able to generate colored report. Its the same black and white report I am getting. This is the command I am using

newman run C:\Users\sudhir_swain\Desktop\PostManCollections\ISPW_API_Collections.json --reporters html
Do I need to run any other command?
My node version is 6.10.0 and npm version is 3.10.10


Hi Gopi. It woks fine now for me. Can we make API request color as “Green” instead of “Yellow” in passing scenario


yes, you can @sudhir_swain


hi I am unable to get mean time in report it is all zero (0ms). need help using gopikrishan index and template


Hello guys, can someone help me im using a custom report from @tegomassria and everything is great but i want to see only Failed requests in the “Requests” collums i know its possible but have no idea how to modify the code part with request aggregations


got same error and with custom reports


Hi @gopikrishna4595 , used your .hbs file and the report generation is working fine. But i am getting Request body blank in the html report when it’s a POST request with Content-Type: multipart/form-data . Can you provide a fix around this?


Hi @gopikrishna4595 I’ve been trying to use your files but I’m having issues to ge it working. I’m on a Mac, i created a test project and I ran:
npm install newman-reporter-html
I then replace the files index.js and template-default.hbs with yours in location:

which is the place I can see these two files are living.

As soon as I do that, I start to get the error:

newman: “html” reporter could not be loaded.
run npm install newman-reporter-html

As soon as I revert back to the original files from newman-report-html it all works, but of course using the default files.

Would you be able to let me know what am I doing wrong?



Hi @gopikrishna4595,

Am also facing the same exact issue as javier4517 is facing

newman: “html” reporter could not be loaded.
run npm install newman-reporter-html

,please help to resolve