Hello,
In my script I am visiting more than one page for example
- login page (Entering username and password and clicking “Sig in” button)
- dashboard page (navigating to dashboard page after login)
I found the following link to set different url values while defining the thresholds.
I added the following threshold into my script
thresholds: {
‘browser_web_vital_lcp’: [‘p(90) < 1000’],
‘browser_web_vital_lcp{url:https://xxxxxxx/my-dashboard#/sign-in/password }’: [‘p(90) < 100’],
‘browser_web_vital_lcp {url:https://xxxxxxx/my-dashboard#/dashboard}’: [‘p(90) < 100’],
},
But as you see from the following test result report, lcp metric value calculated only for one page
browser_data_received…: 9.5 MB 631 kB/s
browser_data_sent…: 165 kB 11 kB/s
browser_http_req_duration…: avg=114.79ms min=90µs med=56.91ms max=2.4s p(90)=225.81ms p(95)=309.28ms
browser_http_req_failed…: 0.55% ✓ 1 ✗ 180
browser_web_vital_cls…: avg=0.306377 min=0.306377 med=0.306377 max=0.306377 p(90)=0.306377 p(95)=0.306377
browser_web_vital_fcp…: avg=249ms min=249ms med=249ms max=249ms p(90)=249ms p(95)=249ms
browser_web_vital_fid…: avg=400µs min=400µs med=400µs max=400µs p(90)=400µs p(95)=400µs
browser_web_vital_inp…: avg=40ms min=40ms med=40ms max=40ms p(90)=40ms p(95)=40ms
✗ browser_web_vital_lcp…: avg=1.44s min=1.44s med=1.44s max=1.44s p(90)=1.44s p(95)=1.44s
✓ { url:https://xxxxxxx/my-dashboard#/dashboard }…: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
✗ { url:https://xxxxxxx/my-dashboard#/sign-in/password }…: avg=1.44s min=1.44s med=1.44s max=1.44s p(90)=1.44s p(95)=1.44s
browser_web_vital_ttfb…: avg=197.16ms min=41.19ms med=77.79ms max=472.5ms p(90)=393.55ms p(95)=433.02ms
checks…: 100.00% ✓ 2 ✗ 0
data_received…: 0 B 0 B/s
data_sent…: 0 B 0 B/s
iteration_duration…: avg=12.88s min=12.88s med=12.88s max=12.88s p(90)=12.88s p(95)=12.88s
iterations…: 1 0.066235/s
vus…: 1 min=1 max=1
vus_max…: 1 min=1 max=1
Is there a way to get vital metric for each page visited in one script?
Thanks.
2 posts - 2 participants