newman-reporter-htmlextra reports with Jenkins html publisher not showing report in html format

1k views Asked by At

I have Postman collections. I am running it through jenkins using below window batch script

C:/Users/user/AppData/Roaming/npm/newman" run "C:/postmancollections/07072021/Test-Collection.postman_collection.json" -r cli,htmlextra --disable-unicode --reporter-htmlextra-export ein-test-suite-report.html --reporter-htmlextra-title "Report Test Summary" 

my workspace location is C:\CustomWorkspace

In publish html report I have provided index page name as ein-test-suite-report.html

I am able to see html extra report is correctly generated in customworkspace location with name ein-test-suite-report.html

But in jenkins , html report the report is not html , its kind plain report as below attached screenshot

In Custm Worksspace folder , I can see html report as below. I am expecting same we can see in the jenkins

1

There are 1 answers

2
Jayanth Bala On

Please use jaiman, internally using the newman and htmlextra

https://www.npmjs.com/package/jaiman