Recentl, I’ve been working on the performance test with Gatling.
And get confused about the pause clause, I’d really appreciate if any one can explain to me.
According to the definition of Pause:
“When a user sees a page he/she often reads what is shown and then chooses to click on another link. To reproduce this behavior, the pause method is used.”
My understanding is that: the users do one thing, then wait for a while , and do other things.
But according to my test, clearly it is not.
scenario("Basic Test") .exec(http("Post data") ... ) .pause(5) I use constantUsersPerSec(1)and during 60 seconds. I think this will do a request and wait for 5 seconds, so in total it should be 12 request. But in fact, there are 60 request. To make it 5 seconds/second, I have to make the constantUsersPerSec(0.2). **Example 2:** scenario("Basic Test") .exec(http("Post data") ... ) .pause(5) .exec(http("Get data")) .pause(5) And in this example, I chained two actions together(action 2 has the same configuration constantUserPersec(1) as action 1). What I expected is: action1 -> 5 seconds -> action2-> 5 seconds-> action1->..... And its not. Hope my description is clear enough. Thanks in advance.