'Gatling - constant user for 1 minute and my script need to run for 30 minutes
I'm very new to gatling my scope is i need to test few API's with constant hit by user in every 1 minute and this should be repeated for 30 minutes or 1hr or 24hrs
Every 1 minute 3 user need to hit my API 30 sec pause after 1 minute Again we need to hit the API for 1 minute with 3 user. This should be repeated for 30 minutes.
I have tried below.
val AllAPI = scenario("Registration API - Add").during(30 minutes) {
feed(csvFeeder1)
.feed(csvFeeder2)
.exec(http("Registration API - Add")
....}
setUp(PVHAPI.inject(constantConcurrentUsers(3).during(1 minutes))).protocols(httpProtocol)
setUp(PVHAPI.inject(constantConcurrentUsers(3).during(1 minutes))).protocols(httpProtocol).pauses(normalPausesWithStdDevDuration(5))
The above configuration will take pause set up on request level as a mean value and use std deviation 5s to choose the final pause value.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
