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

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
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...


Marsha_R
[Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

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


Marsha_R
[Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

sonya_m
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

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

nisgupta
Valued Contributor

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

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

AlexKaras
Community Hero

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

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 Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: