Ask a Question

Version 11 keeps freezing

prichard
Occasional Contributor

Version 11 keeps freezing

Hello,

 

I have just installed the version 11 of TestComplete and I am experiencing TestComplete freezes while its waiting for an application to run or exit.

For example, TestComplete is hanging while processing the following VBS routine : 

 

Do While sys.WaitProcess("SQLCMD").Exists

    Timeout = Timeout +1

    call aqUtils.Delay(10000, "Attente restauration base de données")

    if TimeOut = 70 then

      Call log.Error("Le processus SQLCMD a atteint un Timeout, il va être tué")

      sys.Process("SQLCMD").Terminate

      Exit Do

    end if

  Loop

 

The SQLCMD exit without error but, sometime, testComplete is hanging. Its progress bar is freezed while processing aqUtils.Delay(...)

 

Then I need to kill TestComplete process. 

This VBS routine did not cause any problem while I was using the TestComplete version 10.

 

My system is a Window server 2008 R2. I have already opened a support ticket (Case #00137385)

 

Any help would be much appreciated. Thanks !

7 REPLIES 7
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Prichard,

 

I believe that the TestComplete Support team will get in touch with you shortly. One clarification question: This line

call aqUtils.Delay(10000, "Attente restauration base de données")

delays the script execution for 10 seconds. Is TestComplete hanging longer?

 

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



prichard
Occasional Contributor

Hi Tanya,

 

Yes, TestComplete is hanging longer and I need to kill it through Windows Taskmgr. In fact, TestComplete execution progress bar is freezed displaying the aqUtils.Delay message string. Then I click on Pause Button and after that I click the Stop Button.

TestComplete processes then "OnStopTest General Events" without error.

When "OnStopTest General Events" are done, it hangs, displaying the aqUtils.Delay message.

TanyaYatskovska
SmartBear Alumni (Retired)

Thanks for the clarification.

Do you do anything special in the OnStopTest event handler?

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



prichard
Occasional Contributor

 

I don't know if it is special, but here is what is triggered by the On Stop Test Event :

 

Sub GeneralEvents_OnStopTest(Sender)

     Call ControleAndKillProcess("EXE1")

     Call ControleAndKillProcess("EXE2")

End Sub

 

The ControleAndKillProcess procedure looks like this :

 

Sub ControleAndKillProcess(Process) 

Dim NbProcess 

     NbProcess = 0

   Do While Sys.WaitProcess(Process, 2000).Exists

           NbProcess = NbProcess +1

     Log.Warning("Le processus "& Process & " est en cours d'exécution. Il va être terminé.")

     Sys.Process(Process).Terminate

          Delay(1000)

          If NbProcess = 100 then

       log.Error("100 tentatives de fermeture du process " & process & "ont été exécutées. la procédure va s'interrompre.")

              Exit Do

          end if

       Loop 

End Sub

 

Thanks for your help.

 

 

TanyaYatskovska
SmartBear Alumni (Retired)

Hi Prichard,

 

According to this code, you are trying to terminate your application many times. Is it freezing during the test execution? Perhaps, you need to investigate TestComplete’s Freeze Diagnostics Options.

Anyway, I see that the Support Team has requested some additional information for the investigation – I hope they will figure out this situation.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



m_essaid
Valued Contributor

Hi,

 

I use this method to kill the process I test, at begining and at the end of the tests item, just to be sure :

 

(Delphi script, sorry for the indentation)

 

procedure KillProcessus(NomProcessus: string);
var
p, IsClosed;
begin
p := Sys.FindChild('ProcessName', NomProcessus);
while p.Exists do
begin
p.Close;
IsClosed:= p.WaitProperty('Exists', False);
if not IsClosed then
p.Terminate;
p:= Sys.FindChild('ProcessName', NomProcessus);
end;
end

 

mehdi

prichard
Occasional Contributor

As I am still experiencing this issue, I would like to know if I can downgrade my TestComplete Project from vesion 11 to version 10 ?

 

Thanks fo the help.

cancel
Showing results for 
Search instead for 
Did you mean: