Can you share a minimal script that reproduces this?
Which specific k6 metric are you interested in?
If the “Transaction” tab loads via Ajax and no navigation happens, you wouldn’t get metrics like browser_dom_content_loaded or browser_first_paint. In that case, consider using page.waitForSelector() in the 3rd group and checking the group_duration metric.
yes, you are right, after login, tab load calls are made via Ajax.
I am interested in table load time of a specific tab which i think i can get in group duration
i can see the group duration in the csv file generated
but excel file has multiple group duration ( 2 for each group) with different timings. I have attached a loom video, just wondering which timing( from 2 of them) should i consider
You are running 2 iterations, which is why you have 2 metrics for each group. You can consider either of them if you want a single result. Otherwise, you can aggregate the result from both (or more) iterations however you like. You can do this directly in Excel, or in another metric output system, or even in the script itself with handleSummary().
I’m not sure what you mean. group_duration is already aggregated in the data passed to handleSummary(), and you can save it in a JSON file. It’s also shown in the summary output:
i cannot see any goup duration stats in the json output obtained through handle summary, its available in csv file. loom video attached
I am interested in metrics for a specific group, which is available through csv
@jithin I’m confused. In your previous post you mentioned you wanted avg, min and max group duration. These are aggregated statistics across all groups in your script, which are available in the data passed to handleSummary(), as your last video shows. This is the same data you see in the end-of-test summary output by default. You can create HTML reports from it or do whatever you like in handleSummary().
If you want to see unagreggated metric samples for each group, then you’ll have to use an output, like CSV or JSON. See the documentation. You can then aggregate this data however you like by processing the raw output metric samples.