Is there any way we can randomize the request per second in Gatling? In the documentation they have provided reachRps and jumpToRps which doesn't provide dynamic request within a range. How can i setup the script to publish request in range of 500 to 1000 per second range?
package sample
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class PerformanceTest extends Simulation {
object rqstObj {
val getData =
exec(
http("Get SourceId")
.post(SomeURL)
.body(SomeBody)
.check(status.is(200))
)
}
val rqst = scenario("Test1")
.forever(exec(rqstObj.getData))
setUp(rqst.inject(
constantUsersPerSec(18) during (5 seconds)
).protocols(httpProtocol)).throttle(
//Instead of writing the below code, i need something dynamic as we have for rampUser
reachRps(650) in (1 minute),
reachRps(950) in (1 minute),
reachRps(650) in (1 minute)
).maxDuration(3 minutes)
}