How can I print out the current iteration number in k6?

How can I print out the current iteration number and VU Id into log?

Hi @Brenda,

You can print them using:

console.log(`VU: ${__VU}  -  ITER: ${__ITER}`);

To get more information about the execution context, you can use the Execution context variables

Let me know if that helps!
Cheers!

2 Likes