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:
To deploy the updated toolkit support set to UFT One, copy the WebExtBook.js file (and WebExtSample.xml if necessary) to <UFT_One_installdir>\dat\Extensibility\Web\Toolkits\WebExtSample.
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.
Close and rerun the sample control.
Open a GUI test and use the Add Objects to Local button in the Object Repository dialog box to learn the Book control.
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.