# try { WebUI.callTestCase(findTestCase(‘Callee’), \[:\], FailureHandling.STOP\_ON\_FAILURE) } catch (StepFailedException e) { println e.getCause() }

**URL:** <https://forum.katalon.com/t/try-webui-calltestcase-findtestcase-callee-failurehandling-stop-on-failure-catch-stepfailedexception-e-println-e-getcause/37271>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [December 9, 2019, 3:41am UTC](https://forum.katalon.com/t/try-webui-calltestcase-findtestcase-callee-failurehandling-stop-on-failure-catch-stepfailedexception-e-println-e-getcause/37271 "2019-12-09T03:41:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Sismundo](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@Christopher\_Sismundo](https://forum.katalon.com/u/Christopher_Sismundo)\
**Post date:** [December 9, 2019, 3:41am UTC](https://forum.katalon.com/t/try-webui-calltestcase-findtestcase-callee-failurehandling-stop-on-failure-catch-stepfailedexception-e-println-e-getcause/37271/1 "2019-12-09T03:41:43Z")

</div>

Hi guys, can you help me with this?

try { WebUI.callTestCase(findTestCase(‘Callee’), [:], FailureHandling.STOP\_ON\_FAILURE) } catch (StepFailedException e) { println e.getCause() }

| Description | Resource | Path | Location | Type |
| --- | --- | --- | --- | --- |
| Groovy:Catch statement parameter type is not a subclass of Throwable. | loginAndGetRFQ.groovy | /C%%Users%User001%Desktop%Deals\_bot\_v0.1%Deals Bot.prj/Keywords/ccnpackage | line 47 | Java Problem |

| Description | Resource | Path | Location | Type |
| --- | --- | --- | --- | --- |
| Groovy:unable to resolve class StepFailedException | loginAndGetRFQ.groovy | /C%%Users%User001%Desktop%Deals\_bot\_v0.1%Deals Bot.prj/Keywords/ccnpackage | line 47 | Java Problem |

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [December 9, 2019, 4:03am UTC](https://forum.katalon.com/t/try-webui-calltestcase-findtestcase-callee-failurehandling-stop-on-failure-catch-stepfailedexception-e-println-e-getcause/37271/2 "2019-12-09T04:03:53Z")

</div>

There’s a problem in line 47.

No, really. I’m really, really sure of it.

* * *

How about you read this, then try posting again:

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you-my-test-is-broken-nothing-works-updated-nov-2019/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [December 9, 2019, 4:14am UTC](https://forum.katalon.com/t/try-webui-calltestcase-findtestcase-callee-failurehandling-stop-on-failure-catch-stepfailedexception-e-println-e-getcause/37271/3 "2019-12-09T04:14:41Z")

</div>

You should post more relevant information. But from the error message, it looks like StepFailedException has not been imported into your test script. Please try Ctrl + Shift + O to auto import.
