pvidal
14 years agoContributor
TestComplete triggers exceptions in the tested application.
Hello,
Since the beginning of our automation effort on few occasions TestComplete would hang and our application would throw a system exception when TestComplete called WaitWinFormsObject. Because it only happened few times we chose to ignore it and we just re-started the test (these are several hour-long tests).
We have kept adding test cases to our projects and now we have the situation where for some of our tests TestComplete will always hang and our application would throw a system exception (I don't know what happens first).
So far we these exceptions (always the same on a specific test case):
Since the beginning of our automation effort on few occasions TestComplete would hang and our application would throw a system exception when TestComplete called WaitWinFormsObject. Because it only happened few times we chose to ignore it and we just re-started the test (these are several hour-long tests).
We have kept adding test cases to our projects and now we have the situation where for some of our tests TestComplete will always hang and our application would throw a system exception (I don't know what happens first).
So far we these exceptions (always the same on a specific test case):
- System.Runtime.InteropServices.SEHException at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(...)
- System.Runtime.InteropServices.SEHException at CWinThread.PreTranslateMessage(...)
The exceptions are only thrown when TestComplete is driving our application. They never happen when manually driving our application.
TestComplete hangs and it only responds when we kill our application process.
We are really stuck on this and I have no clue what to do. I was able to prevent one of the crashes by avoiding the call to WaitWinFormsObject and just doing a delay and a blind click using Sys.Desktop.MouseDown and Sys.Desktop.MouseUp. But I can't use this work around when I need the Window object.
The weird thing is that for the test case with the work around the test case continues executing and can call WaitWinFormsObject on other windows.
Thank you for your help. Regards,
Patricio.