Executing unique scenarios with controlled RPS

Hello everyone! Sorry, I’m new to k6 and want to know if its possible.

I have “scenario” with such flow:

  • make requests 1
  • get response → make requests 2
  • get response → make request 3

And I want these scenarios to be executed once per user with unique parameters for request 1 and configurable RPS.

For example: while test execute 10/50/100 unique scenarios per second.

Optional

Add request 4 to scenario. Request 4 is polling a service until a certain response is received. When we get the wanted response, we finish scenario.

Hi @prok2905work,

It will help if you say what you tried and what were your problems. All of this seems possible, albeit hitting specific RPS is usually a question of using either delays/sleep to slow down the execution or using arrival rate executors.

Without what you tried this seems like me just writing your script for you and most LLMs do pretty good job at this at this point.