Xk6-browser for pages behind authentication

Hi @sashi1

If you create a threshold like this:

export const options: {
  thresholds: {
     'browser_dom_content_loaded{url:https://xxx/catalog}': ['p(95)<500']
  }
}

You will see the metrics for browser_dom_content_loaded for the URL specified in the end-of-test summary. Here’s some example output:

browser_dom_content_loaded...............: avg=745.4ms  min=57µs     med=652.46ms max=1.58s p(90)=1.39s   p(95)=1.49s
     ✗ { url:http://ecommerce.test.k6.io/ }...: avg=1.58s    min=1.58s    med=1.58s    max=1.58s p(90)=1.58s   p(95)=1.58s
2 Likes