Java Connector (Former)

This Java Connector has been replaced by the Java Native Connector, and is disabled by default. If you enable this Java Connector, the Java Native Connector is disabled.

Enable the Java Connector

The Java Connector is disabled by default. To work with existing projects that use this connector, you must manually enable the connector.

To configure the former Java connector:

  1. Open the configuration file %appdata%/Nice_Systems\AutomationStudio\RTClient.exe.config in a text editor.

  2. Add in the parameter shown in red underline below.

    <screenGeneralConfig Polling_Interval="1100" " UseJavaFormerConnector ="true"  EnableSiebelConnector="true" EnableChromiumNetExtension="true" EnableChromiumWpfExtension="true" EnableDelphiWin32Extension="true" Active_Instance="false" Recognize_All="true" Same_Process="false" Remove_Project_Timeout="10" useBHO="false">
    <FunctionConfiguration>
    <add name="WindowFromPoint" displayName="WindowFromPoint" key="iexplore" />
    <add name="WindowFromPoint" displayName="WindowFromPoint" key="a_csm" />
    <add name="WindowFromPoint" displayName="WindowFromPoint" key="a_csm32" />
    </FunctionConfiguration>
    </screenGeneralConfig>

Connector Features

The built-in Java connector provides the following features:

Configure the Connector

No configuration is required for the Java Connector. This connector is enabled by default.

Capture a Screen Element

The procedure for capturing a screen element from a Java application is the same as for all screen elements. See Capture a Screen Element.

Edit a Screen Element

The Edit Screen Element window opens after capturing a screen element. This screen allows you to customize how the screen element is treated and identified. See Edit a Screen Element.

Information specific to Java application screen elements is provided below.

Element Hierarchy

The element hierarchy for a captured Java application element is as follows:

  • Root branch for the Java Process

    • Windows Form (see Win32 Connector)

      • Java Frame element(s)

        • The Java screen element you captured. (This element might be listed as a sub-element of another element, for example, a Group Box. Multiple levels are possible.)

See View the Element Hierarchy.

Screen Element Types Supported

The screen element type values available differ between levels in the hierarchy.

Type

Screen Element Types

Java Screen Element

  • JSwing General

  • JSwing Edit

  • JSwing Text Area

  • JSwing List Box

  • JSwing Table

  • JSwing Tab

  • JSwing Button

  • JSwing Check Box

  • JSwing Combo

  • JSwing Radio Button

  • JSwing Tree

  • JSwing Menu

  • JSwing EditPane

  • JSwing MDI Frame Container

Java Frame
  • JSwing General

Form

Any of the types from:

Java Process

  • Process

Recognition Properties Supported

The recognition properties available differ between levels in the hierarchy.

Main Relation Type

The element's main relation type is displayed in the Edit Screen Element window, but cannot be changed.

This section is not displayed for the Java process.

See Identify an Element's Main Relation Type.

Multi Instance Support

The Java connector provides support for multiple instances of a JAVA application.

You can specify which instance of the application to relate to if multiple instance of the same application are open.

Multi instance support differs between levels in the hierarchy.

Type

Multi Instance Support

Java Screen Element Optional, inactive by default.

Java Frame Element

Optional, inactive by default.

Java Process

Active by default, cannot be deactivated.

See Set Multi Instance Behavior

Screen Element Assets

Each screen elements has its own properties, functions, and events. These are visible in the Assets Panel.

For information on screen element assets, see here.

Monitor Screen Elements in Debug Mode

When in debug mode, you can view and modify the values of a screen element's properties.

For example, a tab's text can be viewed during debug.

See Monitor Screen Elements in Execution Mode.