cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop execution of the rest of my test items if one test fails

SOLVED
Highlighted
Frequent Contributor

How to stop execution of the rest of my test items if one test fails

I run test complete 12.6.

Say I have a project with 4 test suites & I start executing all of them.

 

Suite#1 has 15 tests.

 

Say test Item 3 fails, how do I stop the execution of the rest of 12 tests if number 3 fails ? then continue with Suite#2,3,4

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to stop execution of the rest of my test items if one test fails

Hi
Need to uncheck "Stop on error" option in the project's settings

set1.png

 

select "Project" item in "Stop on error" combobox for all tests
set2.png

 

uncheck "Stop on error" option in the suite's settings

set3.png

 

View solution in original post

7 REPLIES 7
Highlighted

Re: How to stop execution of the rest of my test items if one test fails

Hi
Need to uncheck "Stop on error" option in the project's settings

set1.png

 

select "Project" item in "Stop on error" combobox for all tests
set2.png

 

uncheck "Stop on error" option in the suite's settings

set3.png

 

View solution in original post

Highlighted
Frequent Contributor

Re: How to stop execution of the rest of my test items if one test fails

Thank you 🙂 How do you get to the last screenshot ? 

 

Also, If I need to leave few test items out - Can I keep the test item under Stop On Error ?

 

Highlighted

Re: How to stop execution of the rest of my test items if one test fails

1. Need to click on Project Suite

 

set4.png

 

and select "Test Items" tab

set5.png

 

2. If you select "Test Item" item in "Stop on error", other Test items in project will be executed.

Highlighted
Frequent Contributor

Re: How to stop execution of the rest of my test items if one test fails

Got it. I just found out from my team that we still need to check "Stop On Error" in the last screenshot  😞 so I guess the logic wont work. We may need to create a new separate project for this one. 

Highlighted
Community Manager

Re: How to stop execution of the rest of my test items if one test fails

Thanks for your suggestions, @IStaroverov,

 

@fazlook, just wonder why you cannot check this option. Do you think it will badly affect other tests inside this project?

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Frequent Contributor

Re: How to stop execution of the rest of my test items if one test fails

Hi Tanya,

Yes, it will. I basically rely on Stop on Error event to do lots of other things to me & I cannot uncheck this option. 

Community Manager

Re: How to stop execution of the rest of my test items if one test fails

Thanks for the explanation, @fazlook.

In this case, creating a separate project with the suggested settings sounds like a solution.

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors