Forum Discussion
srikanth92
8 years agoNew Contributor
Hi Lucian,
Following is the code to re-execute the failure test cases,
for ( testCaseResult in runner.results )
{
testCaseName = testCaseResult.getTestCase().name
if ( testCaseResult.getStatus().toString() == "FAILED" )
{
testCaseResult.testCase.run(null, false)
}
}
Thank You!!