Hmm. Why do you switch to asynchronous code? Running a testcase is a very linear task. We will get a callback hell like on cypress. Normaly you use page objects and then you have to return promises from the page object functions. Very annoying.
Hi there! Asynchronous code is very common when working with browser operations. Playwright, which is the inspiration for k6 browser, uses async/await to handle the asynchronous operations, so to provide rough compatibility, the k6 browser API will also be using async/await keywords. At the time of recording this video, k6 browser was still using native promises but this has now been updated on our future releases. I hope this helps! :) - Marie
useful talk
How many atmost VU users can we test for Front-end performance Testing
Is the question how many VU per machine can you run? If it depends on lots of factors
Hey what about the reporting part?? How an we get the good decision making reports?
I think they have a dashboard for reports github.com/grafana/xk6-dashboard
Cool!
Can I load test with 100k user?
In theory if you have enough client machines OR check our Artillery.io + Playwright they have a cloud that scales to infinity
Looks great but honestly I waited for a deeper explanation about performance things, not about just how to make a test with k6 browser.
I appreciate your feedback and will consider a more in-depth performance explanation for future videos.
Hmm. Why do you switch to asynchronous code? Running a testcase is a very linear task. We will get a callback hell like on cypress.
Normaly you use page objects and then you have to return promises from the page object functions. Very annoying.
Hi there! Asynchronous code is very common when working with browser operations. Playwright, which is the inspiration for k6 browser, uses async/await to handle the asynchronous operations, so to provide rough compatibility, the k6 browser API will also be using async/await keywords. At the time of recording this video, k6 browser was still using native promises but this has now been updated on our future releases. I hope this helps! :) - Marie
Feel free to check out ruclips.net/video/N7VJ9X5yAKo/видео.html as we have updated our API since making this video.