You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Specifying HTML extra report template not working
To Reproduce
Enter a valid report template like Postman/htmlExtraTemplate.hbs as html extra report template and trigger the pipeline
Expected behavior
Above template is used.
Actual behavior
The logs show the report template like given in the definition:
...
##[debug]check path : D:\a\1\s\Postman\htmlExtraTemplate.hbs ##[debug]reporterHtmlExtraTemplate=D:\a\1\s\Postman\htmlExtraTemplate.hbs
##[debug]Absolute path for pathSegments: D:\a\1\s\Postman\htmlExtraTemplate.hbs = D:\a\1\s\Postman\htmlExtraTemplate.hbs
##[debug]build.sourcesDirectory=D:\a\1\s
##[debug]Absolute path for pathSegments: D:\a\1\s = D:\a\1\s
##[debug]reporterHtmlExtraTemplatepath supplied :true
...
Describe the bug
Specifying HTML extra report template not working
To Reproduce
Enter a valid report template like Postman/htmlExtraTemplate.hbs as html extra report template and trigger the pipeline
Expected behavior
Above template is used.
Actual behavior
The logs show the report template like given in the definition:
...
##[debug]check path : D:\a\1\s\Postman\htmlExtraTemplate.hbs
##[debug]reporterHtmlExtraTemplate=D:\a\1\s\Postman\htmlExtraTemplate.hbs
##[debug]Absolute path for pathSegments: D:\a\1\s\Postman\htmlExtraTemplate.hbs = D:\a\1\s\Postman\htmlExtraTemplate.hbs
##[debug]build.sourcesDirectory=D:\a\1\s
##[debug]Absolute path for pathSegments: D:\a\1\s = D:\a\1\s
##[debug]reporterHtmlExtraTemplatepath supplied :true
...
but it's not there in the newman command later:
...
##[debug]exec tool: C:\npm\prefix\newman.cmd
##[debug]arguments:
##[debug] run
##[debug] D:\a\1\s\Postman\Collection.json
##[debug] --reporter-htmlextra-template
##[debug] D:\a\1\s
##[debug] --reporter-htmlextra-export
##[debug] D:\a\1\s\Reports\htmlextra_report.html
##[debug] --reporter-htmlextra-title
##[debug] MyDataGenReport
##[debug] --reporter-junit-export
##[debug] D:\a\1\s\Reports\junit_report.xml
##[debug] -r
##[debug] cli,htmlextra,junit
##[debug] --iteration-data
##[debug] D:\a\1\s\Postman\Scripts\BasicCreate.json
##[debug] -e
##[debug] D:\a\1\s\Postman\Env.json
C:\Windows\system32\cmd.exe /D /S /C "C:\npm\prefix\newman.cmd run D:\a\1\s\Postman\Collection.json "--reporter-htmlextra-template " D:\a\1\s --reporter-htmlextra-export D:\a\1\s\Reports\htmlextra_report.html --reporter-htmlextra-title MyDataGenReport --reporter-junit-export D:\a\1\s\Reports\junit_report.xml -r "cli,htmlextra,junit" --iteration-data D:\a\1\s\Postman\Scripts\BasicCreate.json -e D:\a\1\s\Postman\Env.json"
-> As a result the template is not found and therefore the htmlextra report is not getting generated.
Update
Just to verify if it would work for html template (instead of htmlextra), I've given same there ... result:
...
##[debug] --reporter-html-template
##[debug] /home/vsts/work/1/s/Postman/htmlExtraTemplate.hbs
...
-> template file is given in this case; so looks like an issue with htmlextra template only
The text was updated successfully, but these errors were encountered: