Closed bartmanus closed 6 years ago
@bartmanus A quick update: This is by design, as the HTML reporter is meant to display aggregated request results. The original P.R was merged in haste, I've issued a revert in #1552
@bartmanus This has been fixed in Newman v3.10.0 😄
Problem description
Default HTML report template at newman/lib/reporters/html/template-default.hbs reuses folder and request IDs between iterations:
parent.id
) for collapsible folderDatadiv
in the{{#each aggregation}}
blockitem.id
) for collapsible requestDatadiv
in the{{#each executions}}
blockEnvironment
newman run postman_collection.json --iteration-count 3 --suppress-exit-code --reporters html,junit
Proposed solution
Append iteration index from the
{{#each aggregations}}
block into mentioned IDs:-agg{{@index}}
for folderHead/folderDatadiv
s-agg{{@../index}}
for requestHead/requestDatadiv
sI will create a fork with these fixes jand submit a pull request.