加特林坡道用户和活动用户 [英] Gatling rampUser and active user
问题描述
我在加特林负载测试中使用(120)上的rampUsers(20).但是我得到了以下结果
I use rampUsers(20)over (120) in my gatling load test. But I got the following result
我希望活动用户在测试期间应保持不变.
I expected the active user should be constant during the test.
推荐答案
rampUsers在给定时间内线性注入已定义数量的用户.因此,您在 rampUsers(20)over(120)
上的使用将导致每6秒启动一名用户.您得到的图形显示了这一点,但是可能令人困惑的是,由于您的方案在不到6秒的时间内完成,因此一次活动的用户永远不会超过一个.
rampUsers injects the defined numbers of users linearly over a given time. So your use of rampUsers(20)over (120)
will result in gatling starting one user every 6 seconds. The graph you're getting shows this, but what might be confusing is that since your scenario completes in less than 6 seconds there's never more than one user active at a time.
如果您的目标是在120秒内吸引20位并发用户,则有不同的注入配置文件...
if you're aiming for 20 concurrent users over 120 seconds, there's a different injection profile for that...
constantConcurrentUsers(20) during (120 seconds)
这篇关于加特林坡道用户和活动用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!