Java Add-in
This topic introduces UFT One'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 One Object Model Reference for GUI Testing.
Tip: If your controls are not supported out-of-the-box by UFT One, develop your own support. For details, see Java Add-in Extensibility.
For more details, see:
- Known Issues - Java Add-in
- The Java section of the UFT One Support Matrix
Java Add-in prerequisites
The following table lists prerequisites that may be required before using UFT One 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 |
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. |
Object identification in Java 16 or later |
For UFT One to identify Java objects in Java 16 or later (using Oracle JDK, OpenJDK, or Zulu OpenJDK ), you must specify the following options when you run your Java applications:
You can specify these options in one of the following ways:
Note: For JavaFX applications, see option details below. |
Java Add-in configuration
The following table describes where to find UFT One configuration options related to Java testing:
UFT One Options |
Use the Java pane. |
Record and Run Settings |
Use the Java tab. For details, see Java Tab (Record and Run Settings Dialog Box). |
Test Settings |
Use the Java pane. 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. For details, see Active Screen Pane (Options Dialog Box > GUI Testing Tab). |
Application Area Additional Settings |
Use the Java pane. 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). |
JavaFX applications
When working with JavaFX applications, we recommend using jre8_u60 or above. For details, see https://bugs.openjdk.java.net/browse/JDK-8086098.
In addition, depending on the Java version you are using, the following prerequisites apply:
Java 8 | Make sure that you have a minimum Java version of 8.0.1010.13. |
To use UFT One with JavaFX applications in Java 11, perform the following steps on the computer running your application:
|
|
To use UFT One with JavaFX applications in Java 12 or later, perform the following steps on the computer running your application:
|
|
Java 16 or later |
For UFT One to identify Java objects in Java 16 or later (using Oracle JDK, OpenJDK, or Zulu OpenJDK), you must specify the following options when you run your JavaFX applications:
You can specify these options in one of the following ways:
|
See also: