I am trying to create a test plan that will run multiple iterations of stress test. The idea I'm trying to implement is to run 1 minute of HTTP requests to the server and maintain a constant throughput. Then increase the desired throughput and run the test again for 1 minute. I would like to increase the throughput by 100 Requests per Second on each iteration until I see that the actual throughput is much lower than the desired one.
I have successfully created a test plan that runs a constant throughput for a minute: I have a thread group with X threads, and I set the scheduler to duration of 60 seconds. In that thread group I have an HTTP Request Sampler and a Constant Throughput Timer which I set to a desired value.
However I would like to run that in a loop and increase the desired value in the Constant Throughput Timer on each iteration.
Also I would like to stop the loop (Or skip consecutive iteration ) when I see that the actual throughput as observed in Aggregate Report is much lower than the throughput I set in the Constant Throughput Timer for that iteration.
So basically when I reach the point that my server cannot keep up, I don't want to keep stressing it more.
How could I achieve the above described functionalities?
Thanks