Java Add-in - Quick Reference

You can use the UFT Java Add-in to test Java user-interface objects (controls).

The following tables summarize basic information about the Java Add-in and how it relates to some commonly-used aspects of UFT.

General Information

Supported Environments

  • You can run steps on Java objects in environments such as Internet Explorer, Mozilla Firefox, Java Web Start, Applet Viewer, and in standalone Java applications.

  • For details on supported Java toolkits and versions, see the Java Add-in section of the Unified Functional Testing Product Availability Matrix.

Test Object Methods and Properties

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.

Extending the Java Add-in

Java Add-in extensibility enables you to develop support for testing third-party and custom Java controls that are not supported out-of-the-box by the UFT Java Add-in.

JavaFX applications

When working with JavaFX, it is recommended to use ire8_u60 or above. For details, see https://bugs.openjdk.java.net/browse/JDK-8086098.

When working with JavaFX applications with Java 8, make sure that you have a minimum Java version of 8.0.1010.13.

Prerequisites

Opening Your Application

You can open your Java application before or after opening UFT.

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.

Add-in Dependencies

The UFT Java Add-in can be installed and run together with any other UFT add-in. 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 and use the Web tab of the Record and Run Settings dialog box to specify your record and run preferences.

Configuration

Configuration 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)

Test Settings

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

Custom Active Screen Capture Settings

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

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.

See also: