0
votes

In Jmeter (5.4.1), I have the below thread group with 1 thread. I am controlling the frequency of the transaction using the constant timer. The constant timer_pacing in the image has the required pacing. I see that during execution, the constant timer is applied for each sample request in the particular thread group.

I am expecting all the samples before the contant timer_pacing to be executed one after the other immediately.What am I doing wrong here. Please advice.

enter image description here

alternatively similiar setup seems to works as expected for another thread group.

enter image description here

2
I just realized that the contant timer is applied for each sample in the thread group. how do I setup pacing between each itertaion in Jmeter. thanksnewtogroovy
You may consider updating the question accordingly. The timers are processed before each sampler in the scope.Janesh Kodikara

2 Answers

1
votes

If you want to add a delay between each iteration of each thread add a Flow Control Action Sampler as the first sampler and set the delay in the controller

If you want to add a random delay consider using JMeter function Random ${__Random(1000,5000,)}

enter image description here

0
votes
  1. All JMeter timers obey JMeter Scoping Rules so if you have Timers at the same level as Samplers - all the timers will be applied to all the Samplers

  2. As per Timers documentation:

    Note that timers are processed before each sampler in the scope in which they are found

So if you want to add a delay between defaultPhotoUrl and Submit requests you need to add a Constant Timer as a child of the "Submit" request