Ask a Question

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

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

7 REPLIES 7
IStaroverov
SmartBear Alumni (Retired)

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

 

fazlook
Frequent Contributor

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 ?

 

IStaroverov
SmartBear Alumni (Retired)

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.

fazlook
Frequent Contributor

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. 

TanyaYatskovska
SmartBear Alumni (Retired)

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 Yatskovskaya
SmartBear Community and Education Manager



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. 

TanyaYatskovska
SmartBear Alumni (Retired)

Thanks for the explanation, @fazlook.

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

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: