Constant Timer is real useful chemical constituent of JMeter software charge seek conception every bit it allows yous to intermission each thread for same sum of fourth dimension when executes the requests. You tin add together constant timer nether controller together with parallel to software charge seek plan's requests if yous wants to seat intermission on each request. Also yous tin add constant timer under asking if yous wants to seat intermission on that specific request. Let's run into how to add together together with role constant timer parallel to requests inward software charge seek conception amongst example.
Add Constant Timer Under Controller In Your Software Load Test Plan
To add together constant timer nether controller,
- Right click on your controller -> Add -> Select Timer -> Constant Timer. See below given image.
It volition add together constant timer nether controller.
Example : Using Constant Timer Parallel To Request
As described earlier, It volition apply intermission on all requests if yous seat constant timer parallel to request. I convey prepared real uncomplicated jmeter software charge seek instance to exhibit yous how to intermission threads for specific sum of fourth dimension on each asking yesteryear adding constant timer.
In below given image, You tin run into that my software charge seek conception has iv requests together with added constant timer parallel to those requests. Thread grouping configuration is every bit below.
Now i wants to intermission thread for ii seconds on each asking of my software charge seek plan. So what i convey doe is added constant timer parallel to requests together with laid Thread delay = 2000 milliseconds every bit shown inward below image.
So at i time it volition intermission thread thread for ii seconds on each request.
Now if yous piece of employment inward a higher house software charge seek conception thence lawsuit volition looks similar bellow.
In lawsuit yous tin run into that kickoff fourth dimension departure betwixt each asking is nearest ii seconds + Sample time(ms). i.e. Start Time for My Account asking = ii + Start Time of Login request(09:23:53.405) + Sample time(ms)(0.941) = 09:23:56.346.
This agency yous tin role constant fourth dimension inward your software charge seek conception to seat constant intermission betwixt requests.