How to run 2 TPS load with multiple https request randomly on a single thread group?

116 Views Asked by At

I have to run 2 TPS load with multiple request on a single Threadgroup, Below are my settings :

  • One Tread group named A
  • 7 https request under A

How i can achieve 2TPS load ? What will be the Ramp-up Period and No of Treads to run 2 TPS load with 7 request? How the requests will go in non-sequential manner/ Randomly ?

Tried with Test Fragment and constant throughput timer but not getting accurate results

1

There are 1 best solutions below

1
Dmitri T On

There are following options available:

  1. Constant Throughput Timer, 2 TPS will be 120 requests per minute.

    enter image description here

  2. Precise Throughput Timer, in this case you will need to set/calculate your desired test duration, here is an example setup for 1 minute test duration:

    enter image description here

  3. And probably the easiest way is Throughput Shaping Timer, it provides easy visual way of defining the load

    enter image description here

Also be aware that the timers can only pause JMeter to limit the TPS to the desired value so you have to supply sufficient amount of threads and the exact value depends on your application response time. Also it's possible to connect the Throughput Shaping Timer to Concurrency Thread Group, this way JMeter will be able to kick off extra threads if current amount is not enough for conducting the necessary load.