Forum Discussion

Kenada's avatar
15 years ago

Retry Failed TestSteps

Hello all,

I stumbled over a problem while using SoapUI and I can't find a solution:

I have a TestCase with multiple TestSteps to which I assume a given answer per assertions, so far so good. But the target system is rather instable, sometimes it is not reachable for a few seconds resulting in a error answer. So I wrote a little groovy script that retries a failed connection 5 times (works fine, uses a counter and a go to TestStep by Name) and 99% of the time it get a correct answer within this limit.

My Problem is now, that even after all TestSteps are "green" (thanks to the retry) the TestCase is still failed, because some Results where failed. I searched for a method to only let the TestCase fail when there are failed Steps at the end, but the two variables I could use for such a script (TestRunner.results and TestCase.status) are all readonly.

Has anyone a Idee how I can force a TestCase to only fail when at the end there are failed steps?

Thanks for any input.
No RepliesBe the first to reply