Is it possible for "Jmeter", 'View Results Tree' output recording start after 5 minutes of start of first thread

32 Views Asked by At

I want to record output to View Results Tree after 5 min. of start of JMeter. Delay should be there only for first thread. Is there any way I can do that?

Constant Timer delay every thread. I do not want to delay output in each thread. Also tried on Flow Control Action.

1

There are 1 best solutions below

0
Dmitri T On

You can achieve it by discarding results of any Samplers using i.e. JSR223 PostProcessor and the following code:

if (System.currentTimeMillis() - (vars.get('TESTSTART.MS') as long) < 300000) {
    prev.setIgnore()
}

where:

See Top 8 JMeter Java Classes You Should Be Using with Groovy article for more information on the above and other JMeter API shorthands.

Assuming you put the JSR223 PostProcessor to your Test Plan all Samplers results during first 5 minutes of the test will be ignored, Listeners and .jtl results file will start receiving metrics after 5 minutes only.