Hi all,
I recently ran an end-to-end (E2E) test using xk6-browser with k6 version 0.55.0, and I found something strange in the results.
In the summary result, I see this:
✗ success
↳ 14% — ✓ 45 / ✗ 259
From this, it looks like the total iterations were 45 + 259 = 304.
However, when I check the last line of the run output, I see a different number:
running (34m56.0s), 000/150 VUs, 556 complete and 43 interrupted iterations
ui ✓ [============================] 000/150 VUs 30m0s
So the actual total should be 556 + 43 = 599 iterations.
That leaves around 295 iterations unaccounted for.
I tried wrapping my test code with try-catch to see if any errors were being thrown, but I couldn’t capture anything useful that explained where the “missing” iterations went.
To rule out environment issues:
- The Load Test Runner has 192 vCPUs and 180 GB of memory.
- The total bandwidth during the test was ~200 Mbps out of 1 Gbps available.
So it doesn’t look like CPU, memory, or network bottlenecks were the cause. And if I run with the minimal number of iterations. The results are far better.
My questions are:
- Why does the summary only show 304 iterations, while the execution log shows 599?
- Could there be a reason some iterations are not counted in the ✓/✗ breakdown?
- Is this related to interrupted iterations, or maybe to thresholds/metrics that I’ve defined?
- How can I properly debug or capture what happens to those “missing” iterations?
Any advice or guidance would be really appreciated.
Thanks!