Verification Tab

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

Verify that windows are active
If checked, verifies that windows are active before interacting with them. Default is checked.
Verify that windows are enabled
If checked, verifies that windows are enabled before interacting with them. Default is checked.
Verify that windows are exposed
If checked, verifies that windows are exposed (that is, not covered, obscured, or logically hidden by another window) before interacting with them. Default is checked.
Verify that a tag uniquely identifies a window
If checked, verifies that each tag used by the script matches only one window. Default is checked.
Verify that coordinates passed to a method are inside the window
If checked, verifies that the coordinates, passed to a method, are inside the window before the mouse is pressed. If checked and coordinates fall outside the window, Silk Test Classic raises the E_COORD_OUTSIDE_WINDOW exception. Typically, you use the checking feature unless you need to be able to pass coordinates outside of the window, such as negative coordinates.
Note: The MoveMouse, PressMouse, and ReleaseMouse methods never verify their coordinates. Default is checked.
Verify the class tag for methods of class Control
If checked, verifies that objects are of the specified type before interacting with them. This option is unchecked and disabled.
Verify that an application is ready (requires an extension)
If checked, synchronizes the agent with the application under test. Calls made to the agent will not proceed until the application is ready. This option applies only if you have an extension enabled in the Extensions dialog box. Default is checked.

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.