最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

load testing - Running multiple setUp threads concurrently in jmeter - Stack Overflow

programmeradmin5浏览0评论

I have two setUp thread groups:

  1. One runs one time to set up a lot of things.
  2. 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:

  1. One runs one time to set up a lot of things.
  2. 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 badges
Add a comment  | 

2 Answers 2

Reset to default 0

Through 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.

  1. setUp Thread Groups are being executed before main Thread Groups

  2. Multiple setUp Thread Groups are being executed according to "Run Thread Groups consecutively" checkbox on Test Plan level

  3. 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.

发布评论

评论列表(0)

  1. 暂无评论