Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying HTML extra report template not working #99

Open
CBR79 opened this issue Oct 28, 2021 · 0 comments
Open

Specifying HTML extra report template not working #99

CBR79 opened this issue Oct 28, 2021 · 0 comments

Comments

@CBR79
Copy link

CBR79 commented Oct 28, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant