Resolving Timeout Error with DevTest while running Test though HP ALM

Document ID : KB000097784
Last Modified Date : 23/05/2018
Show Technical Document Details
Introduction:
For DevTest  testcases  that takes long time to finish,  you may see Timeout errors while running it  through HP ALM.   

ALM  logs will show the following message:    

[INFO]: 5/21/2018 3:01:30 PM - All Cycles are not complete yet 
[INFO]: 5/21/2018 3:01:31 PM - All Cycles are not complete yet 
[INFO]: 5/21/2018 3:01:32 PM - All Cycles are not complete yet 
[INFO]: 5/21/2018 3:01:34 PM - All Cycles are not complete yet 
[INFO]: 5/21/2018 3:01:35 PM - All Cycles are not complete yet 
[INFO]: 5/21/2018 3:01:37 PM - All Cycles are not complete yet 
[ERROR]: 5/21/2018 3:01:38 PM - Test took too long to finish. Test Run Timeout is 600 
[INFO]: 5/21/2018 3:01:38 PM - Waiting 10 seconds for lock 

[INFO]: 5/21/2018 3:01:39 PM - Got lock on test and run 
[INFO]: 5/21/2018 3:01:39 PM - Unlocked Test and Run 
[INFO]: 5/21/2018 3:01:39 PM - Unlocked Test and Run 
Environment:
All supported DevTest Environments. 
Instructions:
To resolve this, enable a specific timeout in the HP ALM VBScript or JavaScript. 

Usage: 
lisa.SetTestRunTimeout(1000000);  
lisa.SetResponseTimeout(1000000);  



Sample  Java Script 
function Test_Main(Debug, CurrentTestSet, CurrentTest, CurrentRun)
{
       try
       {
               TDOutput.Clear();
               lisa = new ActiveXObject(MercuryLisaBridge.MercuryTestRunner);

               lisa.Init(TDConnection, TDOutput);

               lisa.Reload(ThisTest);
               lisa.SetTestRunTimeout(1000000);
               lisa.SetResponseTimeout(1000000);


               lisa.setTrace(true);

               if (Debug) lisa.Debug(ThisTest);

               if (!Debug) lisa.Run(CurrentTest, CurrentRun);

       }
       catch(e)

       {
                  TDOutput.Print(“Run-time error [” + (e.number & 0xFFFF) + “] : ” + e.description);

       }

}
 
Additional Information:
https://docops.ca.com/devtest-solutions/10-3/en/using/using-ca-application-test/using-devtest-workstation-with-ca-application-test/running-test-cases-and-suites/using-the-devtest-alm-plug-in/troubleshooting-the-devtest-alm-plug-in