cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Super 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

-Nishchal

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

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

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.

https://support.smartbear.com/testcomplete/docs/testing-with/running/control-test-flow/stop-after-fi...

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

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

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.

https://support.smartbear.com/testcomplete/docs/testing-with/running/control-test-flow/stop-after-fi...

View solution in original post

Highlighted
Community Manager

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

Thanks a lot Marsha!

 

@nisgupta Was this helpful for you?


Sonya Mihaljova
Community and Education Specialist
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Super Contributor

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

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 .

 

-Nishchal

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
A new challenge is here!

Create a function to drag one element to another for the TechCorner tag!

Will you dare to take the challenge?


Scripts created in July:
- Passing custom command-line arguments as a test parameter
Top Kudoed Authors