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

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

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:

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.

1 Like