Ahmed Gehad
Ahmed Gehad

Reputation: 81

How can I hide JMeter setup thread group samplers to be reported in the generated dashboard?

I have a setup thread group to generate some test data and clear previously generated data from previous runs. This setup thread group contains hundreds of samplers. I have an issue that this setup thread group samplers appear in the generated dashboard report after the run completes. I want to hide them from the generated dashboard. How can I do that?

Upvotes: 0

Views: 706

Answers (1)

Dmitri T
Dmitri T

Reputation: 168122

There are following options:

  1. Add JSR223 PostProcessor to the setUp Thread Group (the same level as all your Samplers) and put the following code into "Script" area:

    prev.setIgnore()
    

    this will call SampleResult.setIgnore() function instructing JMeter to discard all Sample Results in the JSR223 PreProcessor's scope so they won't appear in the Listeners and .jtl result file

  2. There is Filter Results Tool (installable via JMeter Plugins Manager) it provides possibility to remove sample results which names match certain pattern from the .jtl results file. Alternatively you can provide an offset in seconds to cut sample results from the beginning (or the end) of the .jtl results file

  3. JMeterPluginsCMD Command Line Tool provides the same functionality, moreover you can generate various tables and charts in non-GUI mode

Upvotes: 1

Related Questions