Forum Discussion

anhvu's avatar
anhvu
Frequent Contributor
7 years ago

How to improve checking Image

There are sometimes, testComplete take too long to check an image around 45 minutes.

 

I have set the pixel tolerance to 10% already. However, it still takes too long to search for the image.

 

below is my script:

 

check_Image(repository, "LogIn_Page_SecondLaunch", timeout); 

 

function check_Image( repository, image, timeout )
{
var status = false;

for ( var i = 0; i < timeout; i++)
{
if (ImageRepository[repository][image]["Exists"]())
{
status = true;
break;
}
else
{
Delay(1000)
}
}

return status;
}

 

No RepliesBe the first to reply