循环并增加吞吐量直到失败的 JMeter 脚本

JMeter script that loops and increases throughput until failure

想知道是否有人对我如何创建一个 jmeter 脚本有任何想法,该脚本将循环场景,同时增加吞吐量和负载,直到收到错误。

如有任何指导,我们将不胜感激。

您可以通过以下方式:

  1. 将测试设置为 运行 "Forever" Thread Group 级别
  2. 将"Action to be taken on a Sampler error"设置为"Stop Test"

  1. Constant Throughput Timer 添加到您的测试计划中,初始值非常低,例如每分钟 60 个请求(= 每秒 1 个请求)
  2. 尽管名称中有 "Constant" 个单词,但恒定吞吐量计时器的值可以即时更改 see official documentation for example