Haiyangwhu
12 years agoContributor
TestComplete hang issue
Hi There,
I've met below issue several times, hoping to get some suggestions.
I have a test item which timeout value is set as 60 minutes. And i have a method to check whether a control exists or not.
function Exists(controlItem)
{
Log.PushLogFolder(Log.CreateFolder(GetFunctionName(arguments.callee)));
try
{
Log.Message(GetFunctionMsg(arguments));
// Check if the name mapping item refers to an existing object
if (controlItem.WaitProperty("Exists", true, 100))
{
return true;
}
else
{
// Refresh the mapping information to see if the object has been recreated
RefreshObjects();
return controlItem.WaitProperty("Exists", true, 100);
}
}
finally
{
Log.PopLogFolder();
}
}
Direct checking of control's existence by calling controlItem.Exists doesn't work well all the time, so i create the function instead.
But according to the logs of this test item, it sometimes hangs at the if statement
if (controlItem.WaitProperty("Exists", true, 100))
for almost 60 minutes, and the test item fails as timeout!
What are the probable causes and any suggestions to resolve the issue?
Thanks in advance!
OS: Win7
TestComplete: 9.3
I've met below issue several times, hoping to get some suggestions.
I have a test item which timeout value is set as 60 minutes. And i have a method to check whether a control exists or not.
function Exists(controlItem)
{
Log.PushLogFolder(Log.CreateFolder(GetFunctionName(arguments.callee)));
try
{
Log.Message(GetFunctionMsg(arguments));
// Check if the name mapping item refers to an existing object
if (controlItem.WaitProperty("Exists", true, 100))
{
return true;
}
else
{
// Refresh the mapping information to see if the object has been recreated
RefreshObjects();
return controlItem.WaitProperty("Exists", true, 100);
}
}
finally
{
Log.PopLogFolder();
}
}
Direct checking of control's existence by calling controlItem.Exists doesn't work well all the time, so i create the function instead.
But according to the logs of this test item, it sometimes hangs at the if statement
if (controlItem.WaitProperty("Exists", true, 100))
for almost 60 minutes, and the test item fails as timeout!
What are the probable causes and any suggestions to resolve the issue?
Thanks in advance!
OS: Win7
TestComplete: 9.3