Deploying and Testing the New Custom Toolkit Support

In this part of the lesson, you use the UFT One Deploy Toolkit Support command in Eclipse to deploy the Javaboutique toolkit support to UFT One. 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.

  1. Deploy the Javaboutique toolkit support to UFT One.

    1. In the Eclipse Package Explorer tab, select the JavaboutiqueSupport project.

    2. Click the Deploy Toolkit Support button, or select UFT One > 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 One installation folder. The custom support will be available the next time you open UFT One and start the custom application.

      For more information on deploying custom toolkit support, see Deploying and Running the Custom Toolkit Support.

  2. Open UFT One and load the Java Add-in and the custom toolkit support.

    1. Open UFT One. 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 UFT One Help Center for instructions.)

    2. Select the check box for Javaboutique and click OK. UFT One opens and loads the support you designed.

  3. Test the new custom support.

    Repeat the steps in Planning Support for the AllLights Control to perform the following:

    • Run the application. (UFT One 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 One Object Spy.

    • Try to record a Click operation on the AllLights control.

    UFT One 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 One currently does not record anything when you click in the application frame.

    In UFT One, 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 .NOT_IMPLEMENTED.

Next steps: