如何设置并发线程组

问题描述 投票:0回答:2

我有以下测试计划来测试网站的并发用户负载测试 -

配置设置为-

Target Concurrency = 10
Ramp up Time = 1 
Ramp up step count = 1
Hold Target rate time = 6

所以这造成了混乱,我期望它在 1 秒内一次仅发送 10 个请求,但结果是它在 1 秒内一次发送前 10 个请求,并继续发送请求直到 60 秒。

为什么会这样?

concurrency jmeter performance-testing
2个回答
0
投票

保持

Hold Target Rate Time to 1 sec
符合您的期望。

图表应反映您所做的设置。

注意:在您共享的图表中,可以清楚地看到您保留了

Hold Target Rate Time to 60 sec
(也反映在图表中),这导致在启动时间后执行了 60 秒。

参考:

请参阅链接中的并发线程组部分


0
投票

按照1秒内一次模拟10个请求的要求

Target Concurrency = 10
Ramp up Time = 1
Ramp up step count = 1
Hold Target rate time = 1

Keep Hold Target rate time till you want to run to test.
e.g 1 sec for running test plan for 1 sec, 1 min to run test plan for 1 min.
© www.soinside.com 2019 - 2024. All rights reserved.