The output generates metrics mentioned in the screenshot below:
I would like to know how would I figure out these metrics for each page. I couldn’t find the documentation that shows the output for multiple pages. What is the best way to run a frontend load test for multiple pages?
Thanks for this question. While investigating this I ran into an issue with groups in xk6-browser, which I’ve documented in issue #721, which should actually be fixed with issue @k6:#2863. I’ll still document how you can split metrics based on pages for posterity so that you can refer back to them once the issues are resolved.
There are two methods of splitting metrics per page (also documented in another thread):
For small/simple/POC/experimental scripts you can use thresholds on groups to surface the metrics per page e.g.:
@ankur I apologize that I didn’t make my question precise. The pages you mentioned are different. My case is multiple pages post login.
The documentation of xk6 browser mentions login page. My scenarios is I want to load test multiple pages after login is complete. If we consider simple steps where we open the login page and go to another page where there is a list of data. How would I know the browsers metrics shown together are for the login page and navigated list page?
By the way I use Datadog to send metrics and visualize them.