Run threads sequentially in multiple thread group and thread group in parallel - JMeter

63 views Asked by At

I need to setup an test with respect to following scenario

  1. Thread Group 1(Stepping thread group) (HTTP request 1 should continue for 5 min, THEN Http request 2 should be picked up for 5 min and finally for http request 3 - i.e 15 min test)
  • HTTP Request 1
  • HTTP Request 2
  • HTTP Request 3
  1. Thread Group 2(Stepping thread group) (HTTP request 4 should continue for 5 min, THEN Http request 5 should be picked up for 5 min and finally for http request 6 - i.e 15 min test)
  • HTTP Request 4
  • HTTP Request 5
  • HTTP Request 6
  1. Thread Group 3(Stepping thread group) (HTTP request 7 should continue for 5 min, THEN Http request 8 should be picked up for 5 min and finally stop - i.e 10 min test)
  • HTTP Request 7
  • HTTP Request 8

All of the above thread group should run in parallel as a test plan

How to achieve or setup the above scenario in a testplan

1

There are 1 answers

0
Dmitri T On
  1. For running thread groups in parallel make sure that on Test Plan level

    enter image description here

  2. For running a Sampler for 5 minutes put it under the Runtime Controller

    enter image description here

Another option is just moving the requests into separate Thread Groups, if you need to pass any data between them - go for Inter-Thread Communication Plugin