Ask a Question

TestExecute Tests using Batch file - how to stop the execution when there are environment errors .

Valued Contributor

TestExecute Tests using Batch file - how to stop the execution when there are environment errors .

Need advice/Recommendation to avoid false errors.

Here we are running our several testing using batch files and task scheduler. Our test run every hour of the day. But sometimes our tests fails due to firefox browser crashed, or error coming from OS - memeory management console error.

We are looking for ways to stop the execution of tests as soon as those errors occurs. If we have errors outside the Testcomplete we want to stop the execution of tests.


Any updates


Champion Level 3

Here's a place to start.  What you want is to have the test stop gracefully just as if you were running it in TestComplete.  That will let TestExecute stop the same way.

SmartBear Alumni (Retired)

Thanks a lot Marsha!


@nisgupta Was this helpful for you?

Sonya Mihaljova
Community and Education Specialist

Valued Contributor

Thanks for the updates.


Actually I need the solution - turn off Task scheduler - As we are running our tests for every 30 minutes of the day. If the tests fails due to some reasons then we got lot of notifications . The tests will run again and the again it will fail. So we want to turn off task scheduler .



Valued Contributor

Does any one have idea how we can turn off task scheduler . For e,g We have batch file which contain the command to run several projects . If the project start giving error we want to turn off task scheduler or stop executing the bacth file further 


Please update 





(Permission elevation might be required.)


  /Alex [Community Champion]
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: