Currently using the newman htmlextra reporter. For Passed test cases the displayed information is sufficient and for failed test case is it possible to add some other details to it while displaying?
Say like for example, in the above screenshot we can add some other details to make it more clear. i.e some details from response body or the endpoint url used so on.
I have no idea what you changed to even begin to help - I know what that error is but without even a tiny bit of context, I won’t be able to do/or suggest anything.
That is a link to the template the reporter uses by default, you could copy that locally and make changes or craft something entirely different. Then pass that on the CLI as your template.
@danny-dainton I am yet to do any changes to the existing script. I copied the HTML code which you have for default report, tried to save it as hbs file and passed it into my command. Once this is successfully I thought of editing the default report to fit in my needs.
The htmlextra reporter version - The latest is 1.19.0 which will work with that template but earlier versions might not.
Doing an npm update newman-reporter-htmlextra or npm update -g newman-reporter-htmlextra depending where you’re using the reporter should update it to the latest version.
Hi @danny-dainton thanks for your work with this stellar reporter!
Following I’d like to catch up this one.
As an constant beginner I would like to know how to create my own template.
Can I export the default template or where can I find this or can you link here the respective information?
I am using default custom template but in that the value for a variable i want to populate from jenkisfile which is as input choice parameter, how can i pass this ?