Timeout attribute on the <HAScript> element

The timeout attribute on the <HAScript> element can be set using the Timeout between screens setting in the VME, see General tab, and in the AME, see Figure 1. This attribute specifies a timeout value for screen recognition. By default, if specified the value applies to each and every macro screen in the macro. However, you can change the value for a particular macro screen by using the timeout attribute on the <nextscreens> element, see Timeout attribute on the <nextscreens> element).

Whenever the macro runtime starts to perform screen recognition, it checks to determine whether the timeout value is set for the entire macro or whether a timeout value is set for the macro screen's list of next screens. If a timeout value is set, then the macro runtime sets a timer to the number of milliseconds specified by the timeout value. If the timer expires before the macro runtime has completed screen recognition, then the macro runtime terminates the macro. An Error page is displayed in the browser, and a message such as the following is written to the server console:
Figure 1. Error message for screen recognition timeout
Macro timed out: (Macro=ispf_ex2, Screen=screen_address_type)
Notice that this message displays the name of the macro and the name of the screen that was being processed when the timeout occurred. For example, if the screen specified in this message is ScreenA, then the macro runtime had already performed all the actions in ScreenA and was trying to match a macro screen in the Valid Next Screens list for ScreenA to the application screen.
If the macro is playing in the host terminal, the following message is displayed:
Figure 2. Error message shown for host terminal
The host terminal does not match any expected screens.

When specified, the default timeout value is set to 60000 milliseconds (60 seconds).