Ask a Question

Testcomplete Tests hangs when running for days through batch file on remote machines

SOLVED
nisgupta
Valued Contributor

Testcomplete Tests hangs when running for days through batch file on remote machines

We are running Testcomplete Tests on remote machines which have TestExecute .We use Batch file. With the help of Task scheduler we are running the tests for every 30 minutes of the day. SO the tests are running every day i.e. 24/7.

when the test finish running we are exporting the MHT report log as well. 

 

Sometimes Test hangs - due to which no other following tests do not run. After looking at the remote machine I saw that the command window -opened by batch file is there and TestExecute started displaying the Testcomplete Indicator showing the Project Item. It hanged in there.  SInce the tests are running for every 30 minutes it do not hangs every 30 minutes.

 

Attached the screenshot showing when TE tests hangs 

 

Thanks

NG

 

 

 

 

 

18 REPLIES 18
nisgupta
Valued Contributor

attached.

nisgupta
Valued Contributor

@BenoitB 

 

I am trying to understand as I have less knowledge of window event log. I have attached the window event screen . Now where I should navigate to see the log ?

On your batch file you must wait a little before killing process and launching new instance of TE. Process lifecyle treatment is not instant. So use some pause 3  to pause 3 seconds between each call.

It could be the problem..

 

About windows event log, on your panel on left side you have Windows logs entry with sub category, open the Application category and look at time where the problem occured if any special message appears.

Same for Security category and System category.

 

 

 

Un sourire et ça repart

nisgupta
Valued Contributor

@BenoitB 

Attached the log under the Application log. Mostly errors are Group Policy drive maps.

 

In System any errors ?

 

About the group policy you noticed, that means something in this system is linked to a network drive which is not available. I dunno if related to your problem.

 

 

Un sourire et ça repart

nisgupta
Valued Contributor

Do not see any errors Under the System

As far as group policy errors we are seeing those errors at the times where TE tests do not hanged. I will contact our IT department 

 

I will check on other remote machines whether we have group policy errors.

 

 

nisgupta
Valued Contributor

Confirmed with IT department Group policy is not causing the TE tests hang.

 

Do you think put some delay after exiting from TestExecute every time will fix the issue ?

 

This is the below command line I will be using 

 

timeout /T 10 

I think that it cost nothing to try  😉

 

When it hangs, no minidump of TE ?

Perhaps use another software to monitor process execution and find why it hangs.

https://www.ittsystems.com/best-process-operating-system-monitoring-tools/

 

Did you confirm that occurs on several computers or only one ?

If only one it can be simply a hardware problem (memory check ?) or in-deep windows bug.

 

 

Un sourire et ça repart

nisgupta
Valued Contributor

I have time delay of 3 seconds. Let 's see what happens.

 

Here is one more thing we want to mention 

On remote machine After each project run we export MHT report to another folder in the remote machine and that folder is shared so that I can check from my machine. Does it cause TE tests hangs ?

 

thanks

NG

cancel
Showing results for 
Search instead for 
Did you mean: