cancel
Showing results for 
Search instead for 
Did you mean: 

How to ignore some enabled test items and go to a specific item directly when running

SOLVED
VivienZ
New Contributor

How to ignore some enabled test items and go to a specific item directly when running

When it runs to a step and failed, I  need to jump to a specific item instead of continue running the next item.

For instance,

Test.png

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: How to ignore some enabled test items and go to a specific item directly when running

Hi,

 

No, there is no way to implement this using native Test Items setup functionality in TestComplete.

You should implement custom logic to make a decision in test code during runtime whether or not this given test item should be executed. (As an example, in the OnLogError() event handling procedure you may store a name of the failed test item in some project variable and analyze this value in the test code of subsequent test items.)

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

2 REPLIES 2
AlexKaras
Community Hero

Re: How to ignore some enabled test items and go to a specific item directly when running

Hi,

 

No, there is no way to implement this using native Test Items setup functionality in TestComplete.

You should implement custom logic to make a decision in test code during runtime whether or not this given test item should be executed. (As an example, in the OnLogError() event handling procedure you may store a name of the failed test item in some project variable and analyze this value in the test code of subsequent test items.)

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

VivienZ
New Contributor

Re: How to ignore some enabled test items and go to a specific item directly when running

alright, I understand, thank you Alex very much, I try to find another way to achieve my goal, thank you again.

New Here?
Join us and watch the welcome video:
Announcements