About UFT Java Add-in Extensibility

The UFT Java Add-in provides built-in support for a number of commonly used Java objects. You use UFT Java Add-in Extensibility to extend that support and enable UFT to recognize additional Java controls. You can also use Java Add-in Extensibility to teach UFT to recognize a group of controls as one object. For example, if a search button and an edit box comprise a search box, and you want UFT to see them as one functional unit.

When UFT learns an object in the application, it recognizes the control as belonging to a specific test object class. This determines the identification properties and test object methods of the test object that represents the application's object in UFT.

UFT can learn Java controls that are not supported out-of-the-box by the Java Add-in without using Extensibility. However, when UFT learns a Java control that is not supported, it recognizes the control as a generic Java test object. This type of Java test object might not have certain characteristics that are specific to the Java control. Therefore, when you try to create test steps with this test object, the available identification properties and test object methods might not be sufficient.

For example, consider a custom control that is a special type of button that UFT recognizes as a plain JavaObject. JavaObject test objects do not support simple Click operations. The JavaObject.Click method requires the coordinates of the click as arguments. To create a test step that clicks this custom control, you would have to calculate the button's location and provide the coordinates for the click.

Alternatively, consider a search box where pressing the search button searches for a string entered in the adjacent edit box.You would want to replace the button's Click operation with a more functional Search operation that uses text from another control.

By creating support for a Java control using Java Add-in Extensibility, you can direct UFT to recognize the control or group of controls as belonging to a specific test object class, and you can specify the behavior of the test object. You can also extend the list of available test object classes that UFT is able to recognize. This enables you to create tests that fully support the specific behavior of your custom Java controls.