Other Tab

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

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

Tolerance to use when sizing windows (pixels)

Specifies an integer representing the number of pixels allowed for a tolerance when a resized window does not end at the specified size. For some windows and GUIs, you can’t always resize the window to the particular size specified. If the ending size is not exactly what was specified and the difference between the expected and actual sizes is greater than the tolerance, Silk Test Classic raises an exception. Windows cannot be sized smaller than will fit comfortably with the title bar. Default is 0 pixels.

Tolerance to use when moving windows (pixels)

Specifies an integer representing the number of pixels allowed for a tolerance when a moved window does not end up at the specified position. For some windows and GUIs, you can’t always move the window to the particular pixel specified. If the ending position is not exactly what was specified and the difference between the expected and actual positions is greater than the tolerance, Silk Test Classic raises an exception.

The tolerance can be set through the Control Panel, by setting the desktop window granularity option. If the granularity is zero, you can place a window at any pixel location. If the granularity is greater than zero, the desktop is split into a grid of the specified pixels in width, determining where a window can be placed. In general, the tolerance should be greater than or equal to the granularity. Default is 0 pixels.

Events used to invoke popup menus
Specifies a string, which is the command (keystrokes or mouse buttons) used to display pop-up menus. To use mouse buttons, specify <button1>, <button2>, or <button3> in the command sequence. Default is <Button2><Up><Down>. If you are testing Java applications or applets, we recommended that you set this options to <Button2>.
Pick menus before getting menu item information
If checked, picks the menu before checking whether an item on it exists, is enabled, or is checked. You might see menus pop up on the screen even though your script does not explicitly call the Pick method. Default is unchecked.
Pick dropdowns before getting item information
If checked, drops down the combo box before trying to access the contents. This is usually not needed, but some combo boxes only get populated after they are dropped down. Check this option if you are having problems getting the contents of a combo box, such as the Location combo box in Internet Explorer. Default is unchecked.
Consider case when matching items in controls
Check this option to consider case when looking for an item in a control. Default is unchecked.
Show windows which are out of view
If checked, allows controls that are not currently scrolled into view to be seen by the agent. This option is useful for testing Web applications. If unchecked, controls not currently in view are invisible. Default is checked.
Automatically scroll windows into view
If checked, scrolls a control into view before recording events against it or capturing its bitmap. This option is useful for testing web applications. This option applies only if Show windows which are out of view is enabled. This option is useful for testing web applications in which a dialog contains a scroll bar. Default is unchecked.
Enable communication with SilkBean
If checked, enables communication with the SilkBean for all scripts in a test session. The SilkBean is a utility that allows you to perform cross-platform testing of 100% pure Java controls in standalone Java applications. This option applies only if you enable Java support on Silk Test Classic. Default is unchecked.

We strongly recommend that you keep the default settings for Show windows which are out of view and Automatically scroll windows into view. If you do change the values, save them in a custom options set.

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.