Timing Tab

The Timing tab is available on the Agent Options dialog box and contains the following options:

Window timeout (seconds)
Specifies the number of seconds Silk Test Classic waits for a window to appear and be in the correct state. If a window does not appear in the correct state within the specified timeout, Silk Test Classic raises an exception. The correct state of the window depends on how you set the options on the Verification tab, which determine whether Silk Test Classic checks whether a window is enabled, active, exposed, or unique. Default is 5 seconds, unless you have enabled enhanced support for Visual Basic, in which case the default is 20 seconds for 32-bit applications.
Window retry interval (seconds)
Specifies the number of seconds Silk Test Classic waits between attempts to verify a window, if the window does not exist or is in the incorrect state. Silk Test Classic continues trying to find the window until the time specified by the Window timeout option is reached. The correct state of the window depends on how you set the options on the Verification tab, which determine whether or not Silk Test Classic checks whether a window is enabled, active, exposed, or unique. Default is 0.06 seconds.
Keyboard event delay (seconds)

Specifies the delay used before each keystroke in a script. Default is 0.02 seconds. You can specify a number in increments of .001 from .001 to 999.999 seconds, inclusive.

Setting a keyboard event delay is necessary only if objects seem not to be recognized. This often appears as a win.SetActive() being executed before the action to display the window or the wrong window may be made active. The amount you may need to adjust the timing depends upon the speed of the machine you are working on and the application that you are testing. We recommend starting with a delay of .001 and incrementing only by .001 if necessary.

Setting this value to .001 is necessary only for client/server application testing – if you are testing a Web application, a setting of .001 radically slows down the browser. However, setting this to 0 (zero) may cause basic application testing to fail.

Mouse event delay (seconds)
Specifies the delay used after each mouse event (when the mouse is moved to an object) in a script. The delay affects moving the mouse, pressing buttons, and releasing buttons. Default is 0.02 seconds.
Application ready timeout (seconds)
Specifies the number of seconds that the agent waits for an application to become ready. If the application is not ready within the specified timeout, Silk Test Classic raises an exception. Default is 10 seconds. This option applies only if the application or extension knows how to communicate to the agent that it is ready. To find out whether the extension has this capability, see the documentation that comes with the extension. To require the agent to confirm the ready state of an application, select the Verify That an Application is Ready (Requires an Extension) check box on the Verification tab.
Application ready retry interval (seconds)
Specifies the number of seconds Silk Test Classic waits between attempts to verify that an application is ready. Silk Test Classic continues to test the application for readiness if it is not ready until the time specified by the Application ready timeout option is reached. Default is 0.1 seconds.
Timeout to wait for active window (seconds)

This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.

Enter the maximum time, in seconds, to wait for a window to become active.

Retry interval to wait for active window (seconds)

This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.

Enter the maximum time, in seconds, to wait for a window to become active before trying to verify the object again.

Timeout to wait for an enabled window (seconds)
Enter the maximum time, in seconds, to wait for a window to become enabled.

4Test statement which sets the selected option

When you set an option, this field displays the 4Test statement that represents the selected option. For example, if you set the Window timeout to 5 seconds on the Timing tab, the following 4Test statement displays:

Agent.SetOption(OPT_WINDOW_TIMEOUT,5)

The statement uses the SetOption method to operate on the agent object. OPT_WINDOW_TIMEOUT is the internal 4Test name of the Window Timeout option and 5 is the current, default value of the option, five seconds.

This code is useful if you want to set a local value for a given agent. You can type or change the code yourself, then click the Copy to Clipboard button to copy the statement to the clipboard.

Copy to Clipboard
Copies the 4Test statement which sets the option to the clipboard.