Ask a Question

TestComplete Stop and rerun current item does not fire OnStopTest event when test fails

BTscott
Contributor

TestComplete Stop and rerun current item does not fire OnStopTest event when test fails

Greetings,

 

I am interested in using the Stop and Rerun Current Item process on error for our test suites. However, I noticed that the OnStopTest event does not fire when this option is selected. Is there a way to ensure that the OnStopTest event will at least fire on the final try if it is still a failure?

 

Thank you,

3 REPLIES 3
Marsha_R
Community Hero

I think that is happening because it looks to me like the stop part of Stop and Rerun isn't an actual stop of the test. It's more like a pause and retry.  

 

https://support.smartbear.com/testcomplete/docs/testing-with/running/control-test-flow/stop-and-reru...

 

If a retry passes successfully or with warnings, TestComplete will mark this test item as successful or warning respectively and add info about the number of retries to the Summary report.

If all rerun attempts fail, TestComplete will mark the test item as failed and proceed with the next test item.

 

Do you want it to retry and then eventually stop the whole test or retry and eventually keep going?

 

 

 

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

I would like it to retry and keep going so that it can properly run through the clean-up steps in the OnTestStop event.

@npaisley Am I right about the Stop and Rerun?  I think it's going to continue no matter what, and that's why it doesn't trigger the OnTestStop event.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: