mfoster711
2 years agoRegular Contributor
TestComplete extreme slowdown on FindChild call
I am having an issue with TestComplete taking an extreme amount of time to perform a single FindChild. This issue only occurs when:
- The TestComplete .Net Extension is enabled
- I have our test application open
Here is the test code I have been using to duplicate this issue and this is what I sent to Smartbear support.
'When the ".Net Application Support extension" is DISABLED:
' - script takes less than 0.25 seconds to run.
'When the ".Net Application Support extension" is ENABLED:
' - script takes 55 seconds to run with 8 AppSuite Windows open.
' - script takes 30 seconds to run with 4 AppSuite Windows open.
' - script takes 12 seconds to run with 1 AppSuite Windows open.
OverallBegin = Timer()
'This first FindChild is designed to intentionally fail to demostrate time it takes when the window does not exist.
Begin = Timer()
Set w = sys.FindChild(Array("Enabled", "WndCaption", "Visible"), Array("True", "*Not Found Window*", "True") , 2, True)
Log.Message("1 Time: " & FormatNumber(Timer() - Begin, 3) & " Window exists: " & w.Exists)
Begin = Timer()
Set w = sys.FindChild(Array("Enabled", "WndCaption", "Visible"), Array("True", "*AppName Window*", "True") , 2, True)
Log.Message("2 Time: " & FormatNumber(Timer() - Begin, 3) & " Window exists: " & w.Exists)
Log.Message("Overall Time: " & FormatNumber(Timer() - OverallBegin, 3))
The first sys.FindChild line is the line taking longer and longer to process.
There is some conflict occurring between TestComplete and our test application and I don't know what to do next. I have been trying to get a resolution from Smartbear support for over a year and have got nowhere.
Does anybody have any clues or suggestions on how to further troubleshoot this?