Open github-learning-lab[bot] opened 2 years ago
Congratulations β¨
Now you know how to run JMeter test plan, parameterize the test, add the timers and view the results.
You can close this issue now.
Here is the new issue for you.
We are almost there buddy π.
Timers
Note that timers are processed before each sampler in the scope in which they are found; if there are several timers in the same scope, all the timers will be processed before each sampler.
What are Timers? β²
JMeter has different types of
Timers
. Frequently useds timers are:Constant Timer
,Uniform Random Timer
,Precise Throughput Timer
etc.β³ Timers injects a delay before it executes Samplers in scope.
A user who knows how to place an order in the ecommerce application navigates faster in their pace. But if a user is new to the application, then the user's pace is slow. Because every user is unique.
To simulate the real world scenario in the test plan, it is important to add relevant delay between the requests. Also, it will help you test the application in a right way, instead of throwing up the load without delay which will trigger a server crash π₯.
β¨οΈ Activities
Pet Store
plan, let us add aConstant Timer
for each HTTP request.HTTP Request
, go toAdd > Timer > Constant Timer
.1000
inThread Delay
. Unit of time in JMeter ismilliseconds
.View Results Tree
element and then click onRun
You can observe a delay between the HTTP requests when the test is running.
π Kudos! Now you know how to add
Timers
to JMeter test plan.Push the changes to navigate further. We are almost there, keep up the pace.