Assigning Weights in K6

We have defined a workflow containing multiple API requests. I want first API to run 60% of the time, second one 30%, and rest all 10% of time, just the way Locust can do by assigning Task Weights. Is there a way to do this in K6 ?

Hi @vishal.lanke.

I believe you can achieve this by using scenarios.

1 Like

Hi @vishal.lanke !

There are a couple of ways to do something similar, for example:

Let me know if that help!
Cheers!

1 Like

Thanks @olegbespalov , it helps :slight_smile: