如何按顺序执行线程组

时间:2019-12-09 11:02:42

标签: jmeter performance-testing

我的测试计划如下:

Test Plan
   |- Thread Group A
   |     |- HTTP request 1
   |- Thread Group B
   |     |- HTTP request2
   |     |- HTTP request3
   |- Thread Group C
   |     |- HTTP request4
   |     |- HTTP request5
   |- Thread Group D
   |     |- HTTP request6

当我运行它时,它不会按顺序执行线程! (B -> A-> D -> C) 我该如何解决?

1 个答案:

答案 0 :(得分:0)

默认情况下,如果您希望JMeter一对一执行它们,则JMeter同时执行Thread Groups -在Test Plan级打钩Run Thread Groups consecutively

enter image description here

如果在一个线程组中的请求需要在另一个线程组中的特定请求之后执行,则还可以考虑使用Inter-Thread Communication Plugin为执行请求设置一些自定义规则。

相关问题