RajeshS
RajeshS

Reputation: 69

How to spread the load in JMeter to run for certain period of time?

- Test Plan

User Defined Variables

HTTP Request Defaults

When I trigger the executions, all the executions finish quickly. But I want the load to be for 60 minutes. That HTTP requests 1, 2 and 3 to be run at such intervals that they all run for 60 minutes spread across in such a way. Is there any way to do this in JMeter?

Upvotes: 0

Views: 45

Answers (1)

Ivan G
Ivan G

Reputation: 2872

By default JMeter executes Samplers as fast as it can (as soon as the previous response is get). If you want to limit JMeter's execution speed - take a look at JMeter Timers in general an at the following guys in particular:

  1. Constant Throughput Timer which allows to set the desired number of requests per minute. Example configurations:

    • 100 "loops" per hour = 1.6 requests per minute
    • 600 "loops" per hour = 10 requests per minute
    • 1200 "loops" per hour = 20 requests per minute
  2. Precise Throughput Timer which allows to set the desired number of requests per period of time

    Default configuration is suitable for your use case with 100 requests per hour, just set 600 and 1200 instead of 100 for other Thread Groups

    enter image description here

Upvotes: 0

Related Questions