Forum Discussion
StevenColon
Alumni
8 years agoThank you for posting to our Community Forum.
You can add the below script to the TestSuite TearDown Script section to rerun any TestCases that have failed.
//in Test Suite TearDown Script
for ( testCaseResult in runner.results ) {
testCaseName = testCaseResult.getTestCase().name
log.info testCaseName
if ( testCaseResult.getStatus().toString() == 'FAILED' ){
log.info "$testCaseName has failed"
testCaseResult.testCase.run(null, false)
}
}
Have a great day!