在 Jmeter 中以突发模式进行负载测试

use*_*949 5 jmeter

I am running my load test for a duration of 1 hour,in between the test I want a scenario to run for a duration of 1 minutes at regular interval of 15 minutes.

In jmeter,currently I am able to simulate for all the others scenarios except for the burst mode. How do I keep the delay for 15 minutes and trigger the request for duration of 1 min? How do I achieve the TPS for the burst? Currently I have to manually trigger jmeter script.

Dmi*_*i T 5

我建议执行以下操作:

  1. 添加单独的线程组。
  2. 根据需要配置加速和线程数。
  3. 添加一个Constant Timer,将 Thread Delay 设置为 900 000(15 分钟 = 900 秒,1 秒 = 1000 毫秒)
  4. 添加一个Runtime Controller,将 Runtime 设置为 60。
  5. 添加一个Loop Controller,将 Loop Count 设置为 Forever。
  6. 将您的突发测试逻辑放在 Loop Controller 下。
  7. 如果您需要在峰值期间定义每秒请求数,请使用Constant Throughput Timer