Forum Discussion

rwestbury's avatar
rwestbury
Contributor
11 years ago

TestExecute 30 minute hang on particular control


sub test



   theAlias = "NameMapping.Sys.Browser.Application.Modal.InOut.CancelButton"



   set ctrl = Eval(theAlias)



   Call checkObjExists(ctrl)



end sub

 



function checkObjExists(object)



   Sys.Refresh

  
NameMapping.Sys.RefreshMappingInfo



   if isSupported(object, "exists") then



      if not object.exists then  



         checkObjExists = false



         exit function



      end if



   end if



   checkObjExists = true



end function







This code can hang at 'object.exists' for 30 minutes. Strangely, it's not consistent. It seems to happen for 1 particular control we have which we need to click right after logging in. This is right after the entire page has just loaded. During the 30 minutes, the CPU is at 100%. After 30 minutes the control is finally clicked. This is happening on a Windows 7 VM (Virtual PC) using TestExecute 9.3 with 2 GB of RAM and plenty of HD space.



Also, it doesn't always happen. It is fine at the start of our long 16 hour test. Many login/logouts are done during the test. After a while though, the 30 minute hang starts after login, and hangs on every login at that point until the end of the test.



I have created a video of just the segment of the NameMap under question: http://screencast.com/t/eOeaSR8d.



NameMapping.Sys.Browser.Application.Modal.InOut.CancelButton is the Alias that hangs for 30 minutes, sometimes. The code above is the simplified version of our code that results in the hang. The String Alias is brought in from a spreadsheet.



I created another video to show the Object Tree of the NameMap Alias under question and all its parents: http://screencast.com/t/TmBjJcOoh3cI.



Any help on this would be much appreciated.