Dear community,
I have a issue with test suite collection report.
I don’t see test case errored count on report as image attached
Thanks all !
new 1.html (408.3 KB)
Dear community,
I have a issue with test suite collection report.
I don’t see test case errored count on report as image attached
Thanks all !
new 1.html (408.3 KB)
Katalon uses FreeMarker templates for reports. Here’s how to add an “Errored” counter:
Locate the report template:
Go to:
[Katalon_Install_Dir]/configuration/report-viewer/templates/default
Edit summary.ftl:
Open the file and find the section rendering test counts (look for failedCount). Add this code:
text
<#assign erroredCount = testCases?filter(tc -> tc.status == "ERROR")?size> <div class="col-md-2 col-sm-4 col-xs-6"> <div class="status status-error">${erroredCount}</div> <div class="status-text">Errored</div> </div>
Update style.css:
Add this to distinguish errors visually:
css
.status-error { background-color: #ff6b6b; } /* Red color */
Regenerate your report → Errors will now appear as a separate counter.
If you don’t want to edit templates:
After test execution, go to “Test Failure Analysis” tab in Katalon.
Filter by “Status: Error” → This shows only errored test cases.
Export this list to Excel/PDF for stakeholders.
Add this to your @Startup script to log errors separately:
groovy
importcom.kms.katalon.core.context.TestCaseContext TestFailureCollector.addFailureCollector({ TestCaseContext context -> if(context.getTestCaseStatus() == TestCaseStatus.ERROR) { println "[ERRORED] ${context.getTestCaseId()}" // Write to custom log file newFile("errored_cases.log") << "${context.getTestCaseId()}\n" } })
→ Parses errors during execution and saves them to errored_cases.log.
“Errored” vs “Failed”:
Error = Unhandled exception (e.g., missing object, network timeout).
Failed = Assertion failure (e.g., element not visible when expected).
→ If your tests never throw unhandled exceptions, you won’t have “Errored” cases.
Katalon Version Matters:
Katalon 10.0+ (current latest: 10.5.1) has better error tracking.
Older versions (<9.0) cannot separate errors without template edits.
Your Attached Report (new 1.html):
This is the default Katalon report — it always combines errors into “Failed.” Customization is required to fix this.
If you have Katalon TestOps (enterprise):
Sync reports to TestOps → Go to “Analysis” → “Failure Types”.
It automatically categorizes “Errors” vs “Failures” with detailed root-cause analysis.
Welcome, @tungtm1!
Looking forward to hearing more about your progress, feel free to share your updates here.
Hi @tungtm1,
Welcome to our community. Thank you for sharing your issue. Can you please try to create another simple test suite and run if it reports correctly or not? Otherwise, which KS version are you using? Thank you