Forum Discussion

kowcik's avatar
kowcik
Occasional Contributor
7 years ago

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 

 

2 Replies

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi Kowcik,

     


    kowcik wrote:

    Hi Team,

     

     

    I want to have a separate reports that can have only failed test cases re-executed status??

    Is this possible ??

     


    No, there is no built-in option in ReadyAPI.

  • kowcik's avatar
    kowcik
    Occasional Contributor

    is there any external way to achieve it.. i would like to have sample documentation