k6-docs
k6-docs copied to clipboard
The k6 documentation website.
The `Response.json()` API is under documented. In particular it does not explain or give an example of what happens when the selector points to a field that does not exist.
Hi! I was going through the [Checks section](https://grafana.com/docs/k6/latest/using-k6/checks/) of the documentation and found that the scripts mentioned here seem outdated Few examples have switched to using `https://quickpizza.grafana.com` while this page...
The example of [https://grafana.com/docs/k6/latest/javascript-api/jslib/httpx/batch/](https://grafana.com/docs/k6/latest/javascript-api/jslib/httpx/batch/) uses a depecated library https://jslib.k6.io/expect/0.0.4/index.js This library does not show any deprecated message. It has no documentation. The link to the documention on the [main lib...
The GPG key setup is out of date for Debian 13 as originally reported here: https://github.com/grafana/k6/issues/5205 The suggested command by [M3mbrillo](https://github.com/M3mbrillo) appears to correctly setup the GPG key ```bash curl...
# What Using generic selectors instead of semantic ones reduces test maintainability e.g.: ```js const l = page.locator('#some-id'); ``` # Solution Prefer `getBy*` methods over generic `locator()` when possible. These...
# What Confusion about when `locator`s are evaluated vs created. For example: ```js const l = page.locator('#some-id'); ``` is a synchronous API that hasn't interacted with the page yet. It...
It would be *very* helpful if you could list the necessary Elastic index privileges required to be able to use the extension with an API Key, I had to figure...
# What We want to make writing k6 browser scripts simpler by creating a series of opinionated best practice docs on how best to work with k6 browser. # Why...
# What High number of timeouts in test logs indicates performance or resource issues. # Solution Check resource constraints on both load generator and Chromium instances. Monitor system resources during...
# What Web vitals helps identify load issues. For websites (especially SPAs) it is useful to understand long-running tasks that could affect browser and UX performance. # Solution Use the...