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
I have searched the issue tracker for similar problems.
What Are You Seeing
Hi,
I am using custom report and I am trying to filter and show only failed requests. In my case, the tests are the requests, because in the structure each folder is a test case.
In the screenshot bellow is visible that in the nav bar the "Total Tests" and "Failed Tests" shows correct number.
My problem is that I have no idea how to filter only the failed requests in "Failed Tests".
I am using this code to show the failed tests (requests): {{#each aggregations}} {{#if parent.name}} <div class="alert alert-dark text-uppercase text-center iteration-{{parent.iteration}}"> <a data-toggle="collapse" href="#" data-target="#folder-collapse-{{parent.id}}-iteration-{{parent.iteration}}" aria-expanded="false" aria-controls="collapse" id="folder-{{parent.id}}-iteration-{{parent.iteration}}" class="collapsed text-dark z-block"> <i class="fas fa-info-circle float-left resultsInfoPass" {{#each executions}}{{#if cumulativeTests.failed}} style="color: var(--failure2); padding-top: 4px;"{{/if}}{{/each}}></i> {{parent.name}} - {{executions.length}} {{#gt executions.length 1}}Requests{{else}}Request{{/gt}} in the folder <i class="float-lg-right fa fa-chevron-down" style="padding-top: 4px;"></i> </a> </div> <div id="folder-collapse-{{parent.id}}-iteration-{{parent.iteration}}" class="collapse" aria-labelledby="folder-{{parent.id}}"> {{> aggregations}} </div> {{else}} {{> aggregations}} {{/if}} {{/each}}
Any help and advice is more then welcome.
Note: This is not a bug in the original report.
Steps To Reproduce The Issue
It can be generated with the command from "Full Newman Command Or Node Script" section.
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.
Is There An Existing Issue
What Are You Seeing
Hi,
I am using custom report and I am trying to filter and show only failed requests. In my case, the tests are the requests, because in the structure each folder is a test case.
In the screenshot bellow is visible that in the nav bar the "Total Tests" and "Failed Tests" shows correct number.
My problem is that I have no idea how to filter only the failed requests in "Failed Tests".
I am using this code to show the failed tests (requests):
{{#each aggregations}} {{#if parent.name}} <div class="alert alert-dark text-uppercase text-center iteration-{{parent.iteration}}"> <a data-toggle="collapse" href="#" data-target="#folder-collapse-{{parent.id}}-iteration-{{parent.iteration}}" aria-expanded="false" aria-controls="collapse" id="folder-{{parent.id}}-iteration-{{parent.iteration}}" class="collapsed text-dark z-block"> <i class="fas fa-info-circle float-left resultsInfoPass" {{#each executions}}{{#if cumulativeTests.failed}} style="color: var(--failure2); padding-top: 4px;"{{/if}}{{/each}}></i> {{parent.name}} - {{executions.length}} {{#gt executions.length 1}}Requests{{else}}Request{{/gt}} in the folder <i class="float-lg-right fa fa-chevron-down" style="padding-top: 4px;"></i> </a> </div> <div id="folder-collapse-{{parent.id}}-iteration-{{parent.iteration}}" class="collapse" aria-labelledby="folder-{{parent.id}}"> {{> aggregations}} </div> {{else}} {{> aggregations}} {{/if}} {{/each}}
Any help and advice is more then welcome.
Note: This is not a bug in the original report.
Steps To Reproduce The Issue
It can be generated with the command from "Full Newman Command Or Node Script" section.
Full Newman Command Or Node Script
HTMLEXTRA Version
1.23.0
Newman Version
6.1.0
Additional Context
I cannot find any information about how to iterate between aggregations.
What aggregation contains and how to filter information from it ?
The text was updated successfully, but these errors were encountered: