Forum Discussion

mkliba's avatar
mkliba
Occasional Contributor
15 years ago

testRunner.fail interrupt Test Case execution?

Hi:

I have a Test Case with several steps and in the Test Case options I have "Fail on error" not selected.

In one of the Steps I use a groovy to make some validations and if there is an error I was using to fail the groovy:

      testRunner.fail(error)

But it not just fail the groovy step but it also interrupt the Test Case execution the same way the option "Fail on error" use to do. Is there any way I can use the testRunner.fail to fail just the step but continue with steps that follows?

I know I can always use "assert" but I was trying to use testRunner.fail.

Thanks in advance.
No RepliesBe the first to reply