Java Add-in

This topic introduces UFT's Java Add-in, used to test Java user-interface objects (controls), in environments such as Internet Explorer, Mozilla Firefox, Java Web Start, Applet Viewer, and in standalone Java applications.

Java Add-in support references

The Java Add-in provides customized Java test objects, methods, and properties that can be used when testing objects in Java applications.

For details, see the Java section of the UFT Object Model Reference for GUI Testing.

Tip: If your controls are not supported out-of-the-box by UFT, develop your own support. For details, see Java Add-in Extensibility.

For more details, see:

Back to top

Java Add-in prerequisites

The following table lists prerequisites that may be required before using UFT to test Java applications.

Opening Your Application

If you cannot open your Java application after starting UFT, you may have a memory fragmentation issue. Check your memory settings, and see Known Issues - Java Add-in.

Testing Java applets in a Web browser

When testing Java applets in a Web browser, if your tests include operations on Web test objects, you must load the Web Add-in as well as the Java Add-in.

In such cases, use the Web tab of the Record and Run Settings dialog box to specify your record and run preferences.

JavaFX applications

When working with JavaFX:

Back to top

Java Add-in configuration

The following table describes where to find UFT configuration options related to Java testing:

UFT Options

Use the Java pane.
(Make sure that a GUI test is open and select Tools > Options > GUI Testing tab > Java node.)

Record and Run Settings

Use the Java tab.
(Record > Record and Run Settings)

For details, see Java Tab (Record and Run Settings Dialog Box).

Test Settings

Use the Java pane.
(File > Settings > Java node)

For details, see Java Pane (Test/Business Component Settings Dialog Box / Application Area - Additional Settings Pane).

Custom Active Screen Capture Settings

Use the Java section.
(Tools > Options > GUI Testing tab > Active Screen node > Custom Level)

For details, see Active Screen Pane (Options Dialog Box > GUI Testing Tab).

Application Area Additional Settings

Use the Java pane.
In the application area, select Additional Settings > Java in the sidebar.

For business components, the settings displayed in this pane are read-only. To change the Java pane settings for a business component, open its associated application area and use the application area's Additional Settings > Java pane.

For details, see Java Pane (Test/Business Component Settings Dialog Box / Application Area - Additional Settings Pane).

Back to top

See also: