【问题标题】:In same test plan how to run parallel and sequential thread groups in Jmeter在同一个测试计划中,如何在 Jmeter 中运行并行和顺序线程组
【发布时间】:2017-06-20 15:17:17
【问题描述】:

我在jmeter中的测试计划是

Test Plan Thread Group1 Thread Group2 Thread Group3

最后我想运行线程组 1,然后在完成后我需要同时启动线程组 2 和线程组 3。在这里我不能使用调度程序,因为我不知道完成 Thread Group1 需要多长时间 感谢您的帮助。

【问题讨论】:

    标签: automation jmeter performance-testing jmx


    【解决方案1】:

    这就是为什么 JMeter 有SetUp Thread Groups:

    一种特殊类型的线程组,可用于执行预测试操作。这些线程的行为与普通的线程组元素完全一样。不同之处在于这些类型的线程在测试继续执行常规线程组之前执行。

    所以把Thread Group1改成SetUp Thread Group类型,然后让Thread Group2Thread Group3并行运行: p>

    Test Plan (Run Thread Groups Consecutively is unchecked)
      setUp Thread Group (formerly Thread Group1)
      Thread Group2
      Thread Group3
    

    【讨论】:

      猜你喜欢
      • 2017-02-23
      • 2014-08-06
      • 1970-01-01
      • 1970-01-01
      • 2012-05-05
      • 2013-05-11
      • 2012-12-28
      • 2018-08-21
      • 1970-01-01
      相关资源
      最近更新 更多