xk6-browser client-side test result for single user one iteration is not correct

461 Views Asked by At

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.

enter image description here

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?

1

There are 1 best solutions below

0
Janesh Kodikara On

Apparently, there is a known bug at the time of the testing.

Issue #518