# Catch Root Cause Message for a failed Test Step even outside a Test Case

**URL:** <https://forum.katalon.com/t/catch-root-cause-message-for-a-failed-test-step-even-outside-a-test-case/11893>\
**Category:** Feature Request\
**Tags:** feature-request, katalon-studio\
**Created:** [July 5, 2018, 1:05pm UTC](https://forum.katalon.com/t/catch-root-cause-message-for-a-failed-test-step-even-outside-a-test-case/11893 "2018-07-05T13:05:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Drunda\_Nibel](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Drunda\_Nibel](https://forum.katalon.com/u/Drunda_Nibel)\
**Post date:** [January 28, 2019, 8:38am UTC](https://forum.katalon.com/t/catch-root-cause-message-for-a-failed-test-step-even-outside-a-test-case/11893/5 "2019-01-28T08:38:48Z")

</div>

Just now, duyluong announced a change in the behavior of Katalon Studio, that callTestCase() only generates an error about its own failure, without revealing the root cause message of the child test case, for the next release:

> [@How to stop test case in catch block](http://forum.katalon.com/t/how-to-stop-test-case-in-catch-block/18291/12):
>
> 1. callTestCase will throw StepFailedException or StepErrorException if the child test case (callee) has errors.  
> Current: the parent test case (caller) always fails even users catch the right exception.  
> Next release: the parent test case should fail if users don’t catch the exception and should pass if uses catch the exception.
> 2. Yes. In next releases, users can get the root cause exception of StepFailedException or StepErrorException like the below example:
> 
> ```auto
> try {
> WebUI.callTestCase(findTestCase('Callee'), [:], FailureHandling.STOP_ON_FAILURE)
> } catch (StepFailedException e) {
> println e.getCause()
> }
> 
> ```

---

_[View the full topic](https://forum.katalon.com/t/catch-root-cause-message-for-a-failed-test-step-even-outside-a-test-case/11893)._
