I have two setUp thread groups:
- One runs one time to set up a lot of things.
- The second one loops a few times through a file. Since both of these take a long time to run and they don't conflict with each other, I want them to run concurrently, which happens to match what I want with the rest of the test plan.
Jmeter documentation doesn't say anything about how multiple set up threads behave. I wanted to share this information since I could not find an answer anywhere about it.
I have two setUp thread groups:
- One runs one time to set up a lot of things.
- The second one loops a few times through a file. Since both of these take a long time to run and they don't conflict with each other, I want them to run concurrently, which happens to match what I want with the rest of the test plan.
Jmeter documentation doesn't say anything about how multiple set up threads behave. I wanted to share this information since I could not find an answer anywhere about it.
Share Improve this question asked Mar 25 at 18:55 KamiccolaKamiccola 556 bronze badges2 Answers
Reset to default 0Through testing I found that setUp threads work exactly the same as the rest of the test plan. If you uncheck Run Thread Groups consecutively at the Test Plan level, then all same-level threads will run at the same time.
So, the order that the threads execute will be:
1. First all setUp thread groups run at the same time, as many as you have.
2. Then all regular thread groups run at the same time.
3. Then all tearDown thread groups run at the same time.
setUp Thread Groups are being executed before main Thread Groups
Multiple setUp Thread Groups are being executed according to "Run Thread Groups consecutively" checkbox on Test Plan level
If you want to execute main Thread Group after completion of setUp Thread Groups or to run a Thread Group after another one you can use i.e. If Controller or Inter-Thread Communication Plugin to pause one Thread Group until another one is done.