Forum Discussion

EDTB's avatar
EDTB
New Contributor
10 years ago

TestCase FAIL even if all steps PASSED when using loop

Hi all,

I'm executing a test case in which some of the steps are executed multiple times using loop in groovy. If test step failed I use timer and wait for some time and then loop through the step again until it PASS.
But when the test is finished with all steps "passed" (green) the test case itself is FAILED, probably because of failed step in previous loop. This can be seen in the attached screenshot

Is it possible to PASS or FAIL test case depending on latest steps results?

Thanks in advance!!!

3 Replies

  • Post this topic in SoapUI Pro Board if you are using license version. You may get the answer.
  • PaulDonny's avatar
    PaulDonny
    Regular Contributor
    Once a test step fails it auto-fails everything above it. If you want to disable this, in TestCase setting disable "Fail TestCase if it has failed TestSteps"