Ask a Question

Anyway to stop a test if an error occured

SOLVED
whuang
Regular Contributor

Anyway to stop a test if an error occured

Hi Support,

 

I was wondering is there anyway I can get TC to stop or skip the current running test automatically if any error occured? If there is any error occured in a test, the test will be failed for sure, so there is no need to waster time and keep it running.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: Anyway to stop a test if an error occured

Hi,

 

> I can get TC to stop or skip the current running test automatically if any error occured?

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.h...

and

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/project-editor/test-i...

 

> there is no need to waster time and keep it running.

Correct for Unit and Integration tests.

Usually not correct (or is discussible at least) for the functional end-to-end tests and depends on what you are going to get from the test.

 

Regards,
  /Alex [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
================================

View solution in original post

1 REPLY 1
AlexKaras
Community Hero

Re: Anyway to stop a test if an error occured

Hi,

 

> I can get TC to stop or skip the current running test automatically if any error occured?

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.h...

and

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/project-editor/test-i...

 

> there is no need to waster time and keep it running.

Correct for Unit and Integration tests.

Usually not correct (or is discussible at least) for the functional end-to-end tests and depends on what you are going to get from the test.

 

Regards,
  /Alex [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
================================

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: