Open topic with navigation
In this part of the lesson, you use the UFT Deploy Toolkit Support command in Eclipse to deploy the Javaboutique toolkit support to UFT. Currently only one control in this toolkit, the AllLights control, is supported. The toolkit support is not yet complete, but you can already test the support created up to this point.
Deploy the Javaboutique toolkit support to UFT.
In the Eclipse Package Explorer tab, select the JavaboutiqueSupport project.
Click the Deploy Toolkit Support button, or select UFT > Deploy Toolkit Support. In the confirmation messages that open, click Yes and then OK.
The toolkit configuration file and the test object configuration file are copied to the relevant folders in your UFT installation folder. The custom support will be available the next time you open UFT and start the custom application.
For more information on deploying custom toolkit support, see Deploying and Running the Custom Toolkit Support.
Open UFT and load the Java Add-in and the custom toolkit support.
Open UFT. The Add-in Manager dialog box displays Javaboutique as a child of the Java Add-in in the list of available add-ins. (If the Add-in Manager dialog box does not open, see the Micro Focus Unified Functional Testing Add-ins Guide for instructions.)
Select the check box for Javaboutique and click OK. UFT opens and loads the support you designed.
Test the new custom support.
Repeat the steps in Planning Support for the AllLights Control to perform the following:
Run the application. (UFT establishes its connection with an application when the application opens. Therefore, you must close the SampleApp application, and run it again.)
View the AllLights control with the UFT Object Spy.
Try to record a Click operation on the AllLights control.
UFT recognizes the AllLights control as an AllLights test object (according to the to_class_attr method) named AllLights (the name of the custom class). The Object Spy displays the icon you specified in the wizard for this test object class:
Because you have overridden the low-level recording, but have not yet implemented the mouseClicked (MouseEvent arg0) event handler method, UFT currently does not record anything when you click in the application frame.
In UFT, add the AllLights object to the object repository, and create a test step with this object in the Keyword View:
The ClickLight test object method is selected, by default, as the step Operation. If you provide the required arguments for this method and run the test with this step, a run-time error occurs, because the ClickLight_replayMethod method returns