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
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

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

 

7 REPLIES 7

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

 

Frequent Contributor

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

Thank you Smiley Happy 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.

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  Smiley Sad so I guess the logic wont work. We may need to create a new separate project for this one. 

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

Join the September Hub-bub to show off, learn and win
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

Join the September Hub-bub to show off, learn and win
New Here?
Join us and watch the welcome video:
Join the September Hub-bub to show off, learn and win