Ask a Question

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

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

-Nishchal

5 REPLIES 5
Marsha_R
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.

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

sonya_m
SmartBear Alumni (Retired)

Thanks a lot Marsha!

 

@nisgupta Was this helpful for you?


Sonya Mihaljova
Community and Education Specialist

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

 

-Nishchal

nisgupta
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 

Thanks

NG

Hi,

 

https://www.google.com/search?q=windows+task+scheduler+disable+task+script+powershell+microsoft

https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/disable-scheduledtask?view=win10-p...

No?

(Permission elevation might be required.)

 

Regards,
  /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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: