I want to simulate a case where I want my load test to run for 5 min.
Initial RPS = 50 in 30 sec
then Jump to 80 RPS and Hold for 180 sec.
after 210 (30+180) sec, for remaining time I want all my users to reach whatever RPS it can achieve. Same like If I have never used the throttle.
What is happening right now : My test script only work for 210 sec. not for 300 sec. so whatever duration throttle has, script runs for that much time.
setUp(
Simulation_ScenarioOne.inject(rampUsers(thread_Count.toInt ) during (rampUp_Time.toInt.seconds)).protocols(httpConfig)
).throttle(
reachRps(initial_reach_RPS.toInt).in(duration_initial_reach_RPS.toInt.seconds),
holdFor(hold_for_initial_reach_RPS.toInt.seconds),
jumpToRps(jump_to_RPS.toInt),
holdFor(hold_for_jump_to_RPS.toInt.seconds))
.assertions(
// Assert that max response time from 95% percentile of all requests are less than or equal 60 s
global.responseTime.percentile3.lte(60000),
// Assert that successful request is more than (>) 98%
global.successfulRequests.percent.gt(98),
// Assert that every request has no more than (<=) 2% of failing requests
forAll.failedRequests.percent.lte(2)
)
.maxDuration(duration.toInt.seconds)
Any help appricieated