Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 417

Xk6 result for each web page individually

$
0
0

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();
      .... 
})

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 417

Trending Articles