Timers are the test plan elements used to pause the execution of test for a certain specified amount of time. This pause between requests helps in simulating real-world scenarios like time taken by users to think, type something, see and process the information displayed etc.
How to add a Timer-
step 1:Right Click on Thread Group
step 2: choose Add and select the Timer Click on the required Timer
From the following screenshot you can see the same.
Types of timers available in jmeter are Beanshell timer , BSF timer,constant throughput timer,constant timer,gaussion random timer,JSR223 timer ,poission random timer , random timer ,random order timer and synchronizing timer.
Constant Timer
The constant timer is one of the most widely used timers in JMeter. It pauses the execution of test for a specified constant amount of time.
Uniform Random Timer
The uniform random timer is used to pause the test execution for a random time. The maximum value for random time can be specified along with the additional constant time with each wait.
Constant Throughput Timer
The constant throughput timer is a special type of timer used to create pauses with variable amount of time while maintaining the overall throughput i.e. samples/minute.
BeanShell Timer
The beanshell timer is used to generate the delays using beanshell scripting.
BSF Timer
The BSF timer is used to generate the delays using BSF scripting.
Gaussian Random Timer
The Gaussian random timer is used to generate the delays using Gaussian distribution.
Synchronizing Timer
The Synchronizing timer is used to insert delays in script by bocking a certain number of threads and when the blocked thread count reaches a specified number then the threads are released at once. Since, the synchronizing timer generates large amount of instant load hence, it is used for spike testing.
Poisson Random Timer
The Poisson random timer is used to generate the delays using Poisson distribution.
JSR223 Timer
The JSR223 timer is used to generate the delays using JSR223 scripting.
No comments:
Post a Comment