Gatling rampUser and active user

◇◆丶佛笑我妖孽 提交于 2021-01-29 18:48:59

问题


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.


回答1:


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.

if you're aiming for 20 concurrent users over 120 seconds, there's a different injection profile for that...

constantConcurrentUsers(20) during (120 seconds)


来源:https://stackoverflow.com/questions/58753311/gatling-rampuser-and-active-user

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!