Running thread groups sequentially in Jmeter

183 views Asked by At

I am trying to run a script with two thread groups each for multiple users. script looks like

Test Plan Thread group 1 (10 users, ramp up period 5 sec and loop count 1) Samplers Thread group 2 (10 users, ramp up period 5 sec and loop count 1, thread startup delay 3 sec) samplers.

both thread groups share some parameters. So I am using Inter thread communication plugin. My requirement is that for first user I want to run thread group1 and then run thread group2 . then start threadgroup1 for second user. Is this possible?

1

There are 1 answers

1
Dmitri T On

You cannot, an "user" belongs to Thread Group, they don't share any context.

User 1 of Thread Group 1 and user 2 of Thread Group 2 are different beasts.

Normally you should not be passing anything between thread groups, if you need - most probably the test is badly designed and you need to move Samplers under a single Thread Group.