Timers in JMeter

What are Timers?

Timers in JMeter is 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-
Right Click on Thread Group -> Hover over Add -> Hover Over Timer -> Click on the required Timer

Timers provided in JMeter

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 delays using BSF scripting.

Gaussian Random Timer

The Gaussian random timer is used to generate delays using Gaussian distribution.

Synchronizing Timer

The Synchronizing timer is used to insert delays in the 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 a 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.

That’s all we have in this section, please share it with your friends and colleagues. Check out the complete JMeter tutorial here.

JMeter Tutorial

Reference
Apache JMeter User Manual

От QA genius

Adblock
detector