Solved
Forum Discussion
Thanks HimanshuTayal for your response. But in that case, my report will also count the controller as a separate test case, right? That's what I don't want. The test case count in my report should be unchanged.
Also, can you help with how I can achieve that controller using groovy? Any snippet would be helpful.
Thanks much! Appreciate your help!
Simple solution:
Retrieve target test case running status, if failed, then rerun.
import com.eviware.soapui.support.types.StringToObjectMap
//
def testcase = testRunner.testCase.testSuite.testCases["TargetTestCaseName"]
def testresult = testcase.run(new StringToObjectMap(), false)
// loop
for (i in 0..<3) {
if (testresult.status.toString() == 'FAIL') {
testresult = testcase.run(new StringToObjectMap(), false)
} else {
break
}
}