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

Add ReportFinalizer handler to allow manipulation of final data for report generation #690

Closed
3 tasks done
AntyaDev opened this issue May 6, 2024 · 0 comments
Closed
3 tasks done
Assignees
Labels
Milestone

Comments

@AntyaDev
Copy link
Contributor

AntyaDev commented May 6, 2024

Context:

After deep investigation, we found that this task with hidden steps for HTML reports can be implemented via a more general approach based on filtering final stats data before the report generation.

  • Add C#, F# API for NBomberRunner:
NBomberRunner
    .RegisterScenarios(scenario)
    .WithReportFinalizer(data =>
    {
        var scn = data.GetScenarioStats("scenario");
        scn.StepStats = scn.StepStats.Where(x => x.StepName != "hidden").ToArray();
        return data;
    })
    .Run();
  • In case of an exception, the NBomber should log it without breaking the flow and return the default value.
  • Add integration tests
@AntyaDev AntyaDev added the 5.7 label May 6, 2024
@AntyaDev AntyaDev added this to the 5.7.0 milestone May 6, 2024
@AntyaDev AntyaDev self-assigned this May 6, 2024
@AntyaDev AntyaDev changed the title Add ReportDataFinalizer handler to allow manipulation of final data for report generation Add ReportFinalizer handler to allow manipulation of final data for report generation May 6, 2024
@AntyaDev AntyaDev closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant