August 20, 2020

Timers in Jmeter


Timers in Jmeter -


A jmeter thread by default will send requests continuously without any pause. If we want to perform load , it will be overloaded .To get a pause between the requests , timers are used. The purpose of timers is to simulate real users actions in behavior.

Some of the Timers used are
Constant Timer
Gaussian Random Timer
Synchronizing Timer
Uniform Random Timer
For example-- suppose I have 3 requests and when I run I am getting response immediately but in real scenario I have to set up timer. let see how to add timer.



Constant timer-


At Thread group I have added constant timer and u can see the time has been changed to 15 sec as I have given time in constant timer that is 5000 ms. each request is running after 5 sec.



Uniform Random timer- Basically takes random time for each request. It is used when you wants to put some fixed but some random time delay between 2 requests in software load test plan. For example- I want to put minimum delay time 3 seconds and maximum delay time to 10 seconds then i can use uniform random timer in my test plan.


Random delay - we get random delay
Constant delay offset


No comments:

Post a Comment

Please let me know if you have any doubts.

Key concepts in Pipeline

 1. Agent- To build your code or deploy your software using azure pipelines, you need at least one agent. Two types of agent- Microsoft host...