1

My project structure in JMeter is now:

enter image description here

But there are some limitations:

  • A lot of duplicate transaction/module controllers
  • The only once controller is not working with the UltimateThreadGroup
  • Its not possible to use the setUp thread, because the cache is not shared between threads
  • The time from the warmup is different, i cant use the offset in my Synthesis Report

What is a better structure to skip the warmup (first threadrun) from my results?

Janp95
  • 534
  • 8
  • 27

1 Answers1

2

If you want to just remove 1st execution of each sampler for each thread (virtual user) you can play the following trick:

  1. Add JSR223 PostProcessor as a child of the request you want to ignore (or according to JMeter Scoping Rules if you want to remove the first execution of other samplers)
  2. Put the following code into "Script" area:

    if (vars.getIteration() == 1) {
        prev.setIgnore()
    }
    

    where:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Up-voted! Please also take a look at https://stackoverflow.com/questions/73092432/jmeter-to-ignore-warmup-period. thx! – xpt Jul 23 '22 at 16:33