ramesh sriram
ramesh sriram

Reputation: 67

Start Thread Group immidiately without any delay

I have some Thread Groups with Startup delay. This delay is needed in the actual execution. But while validating the Thread Group before the actual run, I don't want to wait for that delay and wants to run that Thread group immediately.

How to override the StartDelay timings for Thread Group. So that I can directly execute that command without doing any changes for testing the Thread group.

Upvotes: 0

Views: 73

Answers (2)

Dmitri T
Dmitri T

Reputation: 168042

Since JMeter 3.0 there is Validate entry in the Thread Group context menu:

enter image description here

According to the documentation:

Validation Mode: This mode enables rapid validation of a Thread Group by running it with 1 thread, 1 iteration, no timers and no Startup delay set to 0. Behaviour can be modified with some properties by setting in user.properties:

  • testplan_validation.nb_threads_per_thread_group : Number of threads to use to validate a Thread Group, by default 1
  • testplan_validation.ignore_timers : Ignore timers when validating the thread group of plan, by default 1
  • testplan_validation.number_iterations : Number of iterations to use to validate a Thread Group
  • testplan_validation.tpc_force_100_pct : Whether to force Throughput Controller in percentage mode to run as if percentage was 100%. Defaults to false

So you can run your Thread Group using Validate menu entry and it will ignore any startup delay and if defaults are not suitable for you they can be overriden via relevant JMeter Properties

Upvotes: 1

Ori Marko
Ori Marko

Reputation: 58772

You can set Thread group's startup delay using property, for example

${__P(startupDelay , 1000}

This way delay will be 1000, unless you add startupDelay JMeter property which override (with 0 for example)

Upvotes: 1

Related Questions