Grouping User Actions in Browser Script

Hi,

Is there any way to group user actions in the k6 browser script so that we will get the browser_req_duration for each transaction ( for e.g. duration for submitting a form , searching for an item etc…) ?

I have tried performance.mark method. Is there any other alternative?

Thanks in advance!

Hi @betsybenny2000,

Thanks for the post.

At the moment there isn’t a way to group user actions together, nor is it possible to tag APIs. The reason for this is that the current groups API only supports synchronous APIs, but the browser module predominantly contains asynchronous APIs.

We have an open issues to track this limitation:

Any updates on this will made in those issues. I’m hoping that we can prioritise this soon.

Best,
Ankur