Deploying and Testing the Toolkit Support Set (for Stage 4)

After developing support for running the test object methods, you deploy the updated toolkit support set to UFT One and test it.

To test the support for running test object methods:

  1. To deploy the updated toolkit support set to UFT One, copy the WebExtBook.js file (and WebExtSample.xml if necessary) to <UFT One installation folder>\dat\Extensibility\Web\Toolkits\WebExtSample.

  2. Close and reopen UFT One. Select the check box for WebExtSample in the Add-in Manager dialog box and click OK. UFT One opens and loads the support you designed.

  3. Close and rerun the sample control.

  4. Open a GUI test and use the Add Objects to Local button in the Object Repository dialog box to learn the Book control.

  5. Create a test with the following step and then run the test:

    Browser("Book").Page("Book").WebExtBook("WebExtBook"). GoToAuthorPage "Jane Doe"
    

    Note: If you run the GoToAuthorPage test object method with an author name that does not exist in the control, the JavaScript function throws an exception, UFT One displays a run-time error message and the test step fails.

    Create and run similar tests to test the Select and GoToUsedBooksPage test object methods.

Continue to Stage 5: Implementing Support for the WebExtBook's Identification Properties.