【问题标题】:RAMP UP in Thread Group of JmeterJmeter线程组中的RAMP UP
【发布时间】:2012-10-04 08:55:15
【问题描述】:

我在 jmeter 中设置加速有问题。

我的测试场景如下所述。

有3个线程组:

Thread Group1 - 2 Users - Ramp up 10
Thread Group2 - 3 users - Ramp up 15
Thread Group3 - 5 users - Ramp up 25

我在上述情况下面临的问题如下。

同时启动所有线程组的第一个用户。
但我不想那样,我想要以下:

  • 在前 10 秒内,第一个线程组的 2 个用户应该启动。
  • 测试 10 秒后,线程组 2 应启动其用户。
  • 测试 25 秒后,第三组应启动他们的用户。

我在 Jmeter 中看到一个选项“连续运行线程组”,但如果我设置线程组 2 将永远不会启动,直到线程组 1 用户应该完成他们的请求执行。

【问题讨论】:

    标签: jmeter


    【解决方案1】:

    jMeter Plugins' Ultimate thread groupStepping thread group 让您可以更好地控制线程。

    【讨论】:

      【解决方案2】:

      为第二个和第三个线程组添加启动延迟:

      这应该可以完成工作。

      您可以在 Start Time 和 End Time 中添加任何内容,因为它们将被启动延迟和持续时间覆盖。

      另请注意:

          Start Time  If the scheduler checkbox is selected, one can choose an absolute 
          start time. When you start your test, JMeter will wait until the specified start time 
          to begin testing. Note : The Startup Delay field over-rides this - see below.
      

      特别注意:

      注意:启动延迟字段会覆盖它 - 见下文。

      【讨论】:

      • 感谢您的回复。我无法添加启动延迟,因为 schedular 需要开始时间和结束时间。我无法输入开始时间,因为我的测试有 10 个线程组。有没有其他相同的解决方案?
      • 仔细阅读文档,我更新了我的答案。我的方法有效。
      猜你喜欢
      • 1970-01-01
      • 2014-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-21
      • 2021-10-24
      • 2022-01-21
      • 1970-01-01
      相关资源
      最近更新 更多