Java Pane (Test/Business Component Settings Dialog Box / Application Area - Additional Settings Pane)

This pane enables you to define Java test or business component settings. For business components, you use the application area's Additional Settings pane to define the settings, and the Business Component Settings dialog box to view the settings in read-only mode.

To access

Do one of the following:

  • For a test or component, select File > Settings > Java node.

  • For an application area, open the application area and select Additional Settings> Java in the sidebar.

Important information

  • The options shown in the Java pane are the same in the application area's Additional Settings pane, the Business Component Settings dialog box, and the Test Settings dialog box.

    The Business Component Settings dialog box displays the settings in read-only mode. To define the settings for a business component, use its application area's Additional Settings pane.

  • The Java pane is available only when the Java or Oracle Add-ins are installed and loaded. If you are using the Oracle Add-in, and you add steps to your test for Java objects within your Oracle application, the options in this pane are relevant for the Java steps in your test.

User interface elements are described below:

UI Element Description
When running JavaEdit.Set steps

Specifies how operations are performed on edit boxes during a test run. We recommend retaining these settings unless you fully understand Java key events and input methods, as well as the implications of sending or not sending these events. Note that JavaEdit.Set steps may fail during a run session if an incorrect value is used for these settings. You can set one or more of the following options:

  • Send KEY_PRESSED event. Sends a KEY_PRESSED event to the object for every character from the input string. (Selected by default.) This setting corresponds to the P value of the Setting.Java("edit_replay_mode") variable.

  • Send KEY_TYPED event. Sends a KEY_TYPED event to the object for every character from the input string. (Selected by default.) This setting corresponds to the T value of the Setting.Java("edit_replay_mode") variable.

  • Send KEY_RELEASED event. Sends a KEY_RELEASED event to the object for every character from the input string. (Selected by default.) This setting corresponds to the R value of the Setting.Java("edit_replay_mode") variable.

  • Use Java API. Calls the setValue() method to set a value of the edit object. This setting corresponds to the S value of the Setting.Java("edit_replay_mode") variable.

  • Send InputMethod event. Sends an InputMethod event to the object for every character from the input string. This event is used with Unicode applications (for example, for some non-English applications). This setting corresponds to the I value of the Setting.Java("edit_replay_mode") variable.
  • Send FOCUS_LOST event at end. Generates a FOCUS_LOST event after running the step. This setting corresponds to the F value of the Setting.Java("edit_replay_mode") variable.
Characters to exclude

Instructs UFT One to ignore the specified characters during a run session. List characters consecutively, without a separator.

  • This option is relevant only if the Use Java API check box is selected in the upper section of this dialog box, or if the value of the Setting.Java("edit_replay_mode") variable is set to S.
  • This setting corresponds to the Setting.Java("exclude_control_chars") variable.
Perform mouse/keyboard operations at device level for these selected methods

By default, UFT One performs mouse operations at the context-sensitive level. You can use this option to select specific operations to perform using device-level replay. Device-level replay simulates mouse or key operations exactly as if they occur on the mouse or keyboard drivers. When a mouse action is simulated on device replay, the mouse pointer moves on the screen to the point where the action is to be performed during the run session. You can select from the following mouse and keyboard methods:

  • Click

  • DoubleClick

  • Type

  • Drag / Drop

This option corresponds to the Setting.Java("device_replay_mode") variable.