What's new in k6 browser? (k6 Office Hours #98)

What's new in k6 browser? (k6 Office Hours #98)

Aug 12, 2023

k6 browser adds browser-level APIs to automate browser actions and collect web performance metrics as part of your k6 test. It's an experimental module, and there is a good reason why!

In this k6 Office Hours, Developer Advocates Marie Cruz and Nicole van der Hoeven are joined by Software Engineers Ankur Agarwal and Daniel Jimenez to discuss the breaking changes that are about to come to k6 browser! You wouldn't want to miss this.

Check out the full release notes here: https://github.com/grafana/k6/releases/tag/v0.46.0

Links shared:
Understanding Grafana k6: https://grafana.com/blog/2023/08/10/understanding-grafana-k6-a-simple-guide-to-the-load-testing-tool/
TestMu Conference: https://www.lambdatest.com/testmuconf-2023

⏰ TIMESTAMPS

00:00 Introduction

01:37 Announcements

04:42 What Daniel and Ankur do in k6

06:22 k6 browser breaking change - One VU per one BrowserContext

13:17 All k6 browser script changes after k6 version 0.46.0

31:43 k6 browser breaking change - Automatic handling of browser lifecycle

36:01 Impact of not closing the pages properly with page.close()

39:39 k6 browser breaking change - Web Vitals metric renaming and browser prefix

44:49 Preview of k6 browser in Grafana Cloud k6

50:32 Future plans for k6 browser in Grafana Cloud k6

53:47 User question: How many k6 browser instances would you recommend?

Contact Nicole:
Mastodon: https://pkm.social/@nicole
LinkedIn: https://www.linkedin.com/in/nvanderho...
Site: https://nicolevanderhoeven.com

Contact Marie:
Twitter: https://twitter.com/mcruzdrake
LinkedIn: https://www.linkedin.com/in/mariedesi...
Site: https://www.testingwithmarie.com/

Contact Ankur:
Twitter: https://twitter.com/Ankur_A22
LinkedIn: https://www.linkedin.com/in/ankur-agarwal-8626aa16/
Github: https://github.com/ankur22/

Contact Daniel:
LinkedIn: https://www.linkedin.com/in/daniel-jim%C3%A9nez-s%C3%A1nchez-9617b08a/
Github: https://github.com/ka3de

Learn more about k6:
Website: https://k6.io
Repo: https://github.com/grafana/k6