-
Notifications
You must be signed in to change notification settings - Fork 141
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
What is the expected behaviour of helpers to calculate the totalFolders
and totalFailedFolders
in the templates
#434
Comments
Hey @ragnarok66: 👋 - Thanks for helping to make the reporter better by raising this ticket. I will take a look as soon as I can and get back to you. Cheers, Danny. |
Hey @ragnarok66, Just to be clear here, this isn't actually an issue with the reporter and the general report output seen by everyone - This is an issue with your custom template which is outside of anything that I have created. I don't actually use those helpers in my templates, there were added to the reporter for a specific users context: This was about 4 years, I didn't fully understand what the user was doing back then and I still don't know. |
totalFolders
and totalFailedFolders
in the templates are not working as expectedtotalFolders
and totalFailedFolders
in the templates
Hey @DannyDainton thank you for the fast replay. You are correct, this is not an issue with the original template. I want to accomplish the same things as @DamienChenon. I need to show the total folders that were executed and the total failed folders. |
I can't say what they were trying to do at that point in time - I tried to run the same thing back then and I still wasn't quite understanding what those helpers were needed for. There's not a great deal I can do here I'm afraid, I'm not going to spending time investigating those helpers and getting them running for a custom template. I just simply don't have time to do that. |
Closing the issue. Old Issue Link - (url)](#191) |
Not an issue |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is There An Existing Issue
What Are You Seeing
Hi,
I am trying to use in my template the handlebar helpers 'totalFolders' and the 'totalFailedFolders' in order to see the data in the summary section.
The way I am using the helpers in my template is:
For both of them it returns same error:
I wonder what I am doing wrong ? Any help about this is more then welcome.
Thank you in advance.
Steps To Reproduce The Issue
It can be generated with the command from "Full Newman Command Or Node Script" section.
The handlebar helpers totalFolders and totalFailedFolders must be used in the custom template.
In my custom template I only added the two lines in the summary section:
Works with any collection where you pass the folder to be executed. The delay, custom title, browser title, logs, noSyntaxHighlighting and showGlobalData are not mandatory.
Full Newman Command Or Node Script
HTMLEXTRA Version
1.23.0
Newman Version
6.1.0
Additional Context
In the summary section I would like to show the number of the test cases, which in my cases are the executed sub-foders
In the image above I use in the template:
{{stats.iterations.total}}
which is not correct, because it is the iterations count.In my structure each sub-folder is a scenario. I want to count those scenarios.
In the Total Requests section is visible:
The text was updated successfully, but these errors were encountered: