【问题标题】:JMeter - Parallel plus sequential thread groups execution in the same test planJMeter - 在同一测试计划中并行加顺序线程组执行
【发布时间】:2017-02-23 04:42:00
【问题描述】:

我有这样的 jmeter 测试计划,

Test Plan
  Thread Group1
  Thread Group2
  Thread Group3
  Thread Group4

我的测试计划配置设置为并行运行所有线程组

这里我要执行Thread Group1然后Thread Group2 顺序和相同的 Thread Group3 然后 Thread Group4 但是 Thread Group1Thread Group3 并行

那么有没有办法将 Thread Group1Thread Group2Thread Group3Thread Group4 组合在一起顺序运行?

我知道这个非常奇怪的要求,但我必须忍受它,提前感谢您的帮助,谢谢。

【问题讨论】:

    标签: jmeter jmeter-plugins


    【解决方案1】:

    我在这里看到 3 个选项:

    1. 使用计划,这将允许您以第 1 组和第 3 组同时运行的方式安排 4 个组,并且第 2 组和第 4 组计划在第 1 组和第 3 组之后运行完成。

    2. 使用 2 个 JMeter 运行它们:在一个 JMeter 中,您将拥有 Thread Group1Thread Group2,在另一个中 - Thread Group3Thread Group4。每个 JMeter 将被配置为顺序运行线程组,但两者都将并行运行,因此 Thread Group1Thread Group3 将并行运行

    3. 更改测试设置,以便有 2 个线程组

      • 线程组 A 结合了 Thread Group1Thread Group2
      • 线程组 B 结合了 Thread Group3Thread Group4

      Thread group AThread group B 中,您可以使用循环控制器来实现特定数量的迭代,而不是线程组级别的循环。即:

      Thread Group A
          Loop Controller [Count = same count as was used for Thread Group1]
              all samplers of Thread Group1
          Loop Controller [Count = same count as was used for Thread Group2]
              all samplers of Thread Group2
      Thread Group B
          Loop Controller [Count = same count as was used for Thread Group3]
              all samplers of Thread Group3
          Loop Controller [Count = same count as was used for Thread Group4]
              all samplers of Thread Group4
      

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-06
      • 2015-11-13
      • 1970-01-01
      相关资源
      最近更新 更多