kowcik
7 years agoOccasional Contributor
Failure re-execution from test suite tear down
Hi Team,
i am running a test suite and reexecuting the failed test cases from testsuite teardown.
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) } }
The issue here is all my failed cases are executed but the status of test is still fail even all the test cases are passed.
When i look into junit reports, the test case that got passed in reexecution still shown as fail.
I want to have a separate reports that can have only failed test cases re-executed status??
Is this possible ??
else share your own thoughts to overcome this