I have seen the response from below post and tried to follow the instructions, but looks like the solution proposed in this post is pretty old and huge changes have been done to the htmlreporter since then. Earlier solution from Feb 2018
But I am getting only title in the report there is no data -
Had to remove image due to new user limitation to add 3 images only
Also, the response data fields are empty on the report -
Had to remove image due to new user limitation to add 3 images only
Due this, even though there is a response received in the tests runs in postman, the report is failing to recognize it and test cases are shown as failed.
I also tried to add {{#with response}} block for the Response header and body section. But in this cases its failing with below error -
Change -
Which versions of Newman and the Reporter are you using?
Are you using a custom template?
Whatâs the command that youâre running?
Unfortunately, the images and the text donât really offer much insight into whatâs going on there. The error message youâre seeing would be related to something else, more than likely the values of something youâre passing in the command line.
Before getting that info together, could you do a full uninstall and a reinstall of Newman and the reporter please.
The text image is the change I did on the dashboard-template.hbs file referring to the solution proposed in earlier post (link in my original post)
âC:\Users\vmdct\AppData\Roaming\npm\node_modules\newman-reporter-htmlextra\lib\dashboard-template.hbsâ
Sorry, adding these lines just to be more clear with the ask -
When I run the postman collection manually, I get all tests passed. But when I run the collection from CLI with the newman & reporter (using command above), I could see the report doesnât contain any response data, its empty⌠I think that is the issue why all tests are shown failed in the report. This is what I am trying to fix by updating the template referring to the old post⌠thatâs the 1st solution I tried (1st text screenshot)⌠but it didnât workâŚ
So, additionally I made change to add {{#with response}} block on the same file. Still it didnât work.
Hope I am clear enough⌠give me a shout if need any more infoâŚ
There shouldnât be any need for you to amend the template to see the data. That thread started long before I created the reporter and is very old so I would be caution making changes if you donât fully understand what the Newman summary object is and how thatâs handled by the handlebar syntax
If Newman is not sending the data, it wouldnât reach the report.
I saw that youâre using the shared link in the run command - If you have been making changes to the collection and saving them in the app - These wouldnât take effect until you update that shared link. The oringinal link is just a snapshot in time rather than a constantly updated collection.
Letâs start again because I have no idea what the set up of your machine currently is to know whatâs going on. The reporter is downloaded about ~7k times a day and no one has reported an installation issue and given your example, they would have seen this straightaway
Can you do this:
npm uninstall -g newman newman-reporter-htmlextra
Followed by this:
npm install -g newman newman-reporter-htmlextra
Ensure that you use these commands as it looked like you are doing just a single reporter install. You would need to do both Newman and the reporter.
An alternative install method would be to use Docker:
docker run -t -v $(pwd):/etc/newman dannydainton/htmlextra run collection.json -r htmlextra
The first line - unable to verify the first certificate is some error in Postman console as well.
Not sure why is this coming, since all certs are valid and tests are working just fineâŚ
Great if you could help on this issue, or will raise a new post on portalâŚ
Thanks again
It says that it couldnât be verified rather than not be valid due to the date etc.
For Newman, you could use the -k flag
In the APP, for it to send the request, you would have manually disabled the SSL certificate verification setting for it to complete the request and give you the response/tests
With that enabled, you would have been presented with this screen:
Not sure - This is just a tiny cropped and masked part of your whole scenario, thatâs coming from the App and not Newman so I honestly couldnât give you an answer either way
Have you ever added the certs locations to the newman run command?