cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WaitForImage occassionally times out

tdavison2
Organizer

Hello,

I have a script where I open an application and I do a WaitForImage that I base my Startup Transaction on. However, sometimes, it takes longer than 30 sec for the Image to display, so the script fails with a timeout.

Is there anyway to extend the 30 sec time out without screwing up Transaction Timing?

Thanks for your help in advance,

Tom

1 REPLY 1

yuriy_look
Inactive

@Tom D.


Hi Tom,

In production scripts the
Transaction
Availability Threshold
is the only factor that determines when WaitForImage,
like many other Framework functions, will time out and raise an error. So, if you have situations when WaitForImage
times out prematurely, you do need to appropriately increase the Availability
Threshold of the related transaction.


If the script is still in Development_Mode, you can
use WaitTime
Framework property to set wait time to any value in seconds, whereas the
default value, as you have observed, is 30 seconds. Setting this value will not help, as I
mentioned earlier, in production scripts.


Please make sure you follow the links in my answer. If you still think that modifying Availability
Threshold
is not an acceptable approach for you, please provide more
details on the use case you need to address.


Thank you,


Yuriy