How to get the reason for failure of a test case?

I want to update a field in Jira based upon the reason of failure of a test case. How can I access this information in a custom keyword? The status can be obtained from testCaseContext.getTestCaseStatus() but I require TestCaseFailureMessage.


The topic is moved to New Feature/Suggestion for further discussion.


+1 for this.

1 Like

This feature request has been acknowledged and logged to Github:
Please follow up its status there.

1 Like


Please ensure this proposal is approached in a way that encompasses the entire logging mechanism. As you will recall, for this same reason, I rewrote how logging and reporting works for my test harnesses since the required hooks were not available (this proposed API/hook included).

Thanks for your suggestion, Russ.
Anyway, in the scope of this request, we have added the failure message and stack trace into the test case context since Katalon Studio 5.9.
Dharmesh, can you help check the new version out to see if it works for you.


1 Like


How exactly can I get the failure message?
textCaseContext is not listed on