Want to discuss on one scenario to achive

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

Hi @TheMayank,

Indeed, it’s documented in Simulation - Shaping Throughput (see the information box).

As throttling is a limit, did you try to jumpToRps(Int.MaxValue)?

Cheers!

Yes thats I have tried, but my end goal is to achieve two known rps and one unknow rps.
that’s why I want system to decide to whatever rps it can reach in remaining time.
but sadly with throttle, i don’t find any solution to it.

any advice how can I simulate my case with or without throttle.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.