question

Tom D. avatar image
Tom D. asked ·

WaitForImage occassionally times out

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

esm
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Yuriy L. avatar image
Yuriy L. answered ·

@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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.