Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在测试计划中有一个线程组,我想使用 100 个用户执行负载运行。我的负载配置应该有如下线程的斜升和斜降:
除了我不想在图像中标记的特定时间内运行负载。相反,我想为脚本的 1 次迭代/循环运行它。可以使用“简单线程组”运行 1 个循环,但无法减速。那么有没有办法同时使用斜坡下降和循环数选项来执行 Jmeter 中的负载运行?
我们basic Thread group本身有一个选项,请参阅下面的屏幕截图
basic Thread group
基本上stepping Thread Group用于负载测试放置很长的时间间隔,所以simple thread group根据您的要求使用。 但是,如果您仍然想使用stepping Thread Groupput 的价值非常低 Then hold load for,请参阅下面的快照
基本上stepping Thread Group用于负载测试放置很长的时间间隔,所以simple thread group根据您的要求使用。
stepping Thread Group
simple thread group
但是,如果您仍然想使用stepping Thread Groupput 的价值非常低 Then hold load for,请参阅下面的快照
Then hold load for
结论是你需要根据你的要求use简单Thread group
use
Thread group
经过一段时间的调查,我了解到在给出循环数的同时进行减速是没有意义的。例如,对于 10 个线程/用户,我给出了 2 个循环。然后在完成 2 个循环后,线程/用户将被关闭,这是间接下降。