Good morning, is it possible to control VU’s actions individually when I run k6 run script.js?
You can use the
__ITER execution context variables to distinguish between VUs in your code with some
if checks, though they are more commonly used to parametrize some data sent to the server.
Math.random() can also be used for some stochastic branching or parametrization.
In recent k6 versions, can also use the
scenarios functionality to more easily have your load test execute multiple different journeys in parallel and/or at the same time.