Java Property
Description
Sets or retrieves Java test preference settings.
Remarks
This property replaces the JavaUtil.SetAUTVar and JavaUtil.GetAUTVar methods. The SetAUTVar and GetAUTVar methods are obsolete and are supported for backward compatibility only.
Syntax
To retrieve the value:
MyVal = Setting.Java(setting_name)
To set the value:
Setting.Java(setting_name) = MyVal
Value Name | Type | Description |
---|---|---|
MyVal | Variant | The value for the specified setting_name. |
setting_name | String | The setting whose value you want to set or retrieve. For a list of available variables, see Java Test Variables. |
Return Value
String.
Example
The following example uses the Java method to set the tree view path separator to handle a specific tree view object.
OriginalSeparator = Setting.Java("TREEVIEW_PATH_SEPARATOR")
Setting.Java("TREEVIEW_PATH_SEPARATOR") = "$"
Window("Microsoft Internet Explorer").JavaApplet("TreeApplet").JavaTree("Tree View 1").Set "root$Second Item"
Setting.Java("TREEVIEW_PATH_SEPARATOR") = OriginalSeparator
See also: