I have just started using xk6-browser, and executed following test script.
import { chromium } from 'k6/x/browser';
export default function () {
const browser = chromium.launch({ headless: false });
const page = browser.newPage();
page
.goto('https://test.k6.io/', { waitUntil: 'networkidle' })
.then(() => {
page.screenshot({ path: 'screenshot.png' });
})
.finally(() => {
page.close();
browser.close();
});
}
with the following command ./xk6-browser run k6-browser-testing-example.js
I got the following test results.
The test was executed with 1 virtual user and for one iteration.
Why am I getting different average, min and max values for browser_dom_content_loaded
?