Xk6 result for each web page individually

Currently group() function is not supported with async function. In my angular based web app, value typing and button submission does not work without async/await. so I cannot use group() function. I will have use different scenarios for each web page to get result per page. Is there way to pass same page between different scenarios ( exec function) so login/auth session is maintained across scenarios. Please point me to the example code for same.

// this is not supported yet with async/await function 
group('login', async ()=> {
         await page.locator('input[id="name"]').type("admin");
         await page.locator('input[id="password"]').type("pass");
         await page.locator('input[value="Submit"]').click();
      .... 
})

Hi @vinodkr,

Unfortunately, we do not support async-groups as you noticed. There are open issues (this and this) to track this functionality’s availability. I’m not sure if it would be possible in your case, but you might want to use custom metrics to group metrics.