Stage 9: Implementing Support for Recording on the Book Control

By this point in the tutorial, your toolkit support set already enables full UFT functionality. UFT recognizes the Book control, can learn it and can run tests on it.

An additional, optional way to create tests in UFT is by recording operations that a user performs on the application. As you can see in Plan Support for the Web Add-in Extensibility Book Sample Toolkit, by default UFT records plain Click operations on the various Web link and image objects within the Book control. It would be more helpful to record Select, GoToAuthorPage, and GoToUsedBooksPage operations on the Book control itself, in response to those same clicks.

To support customized recording on your control, you must instruct UFT to listen to the relevant events and inform UFT what test steps to record in response to each event.

To do this, you write two types of JavaScript functions:

For information on the syntax of the utility object functions, see the _util section in the API Reference.

To develop support for recording on the Book control:

  1. Continue to Deploy the Support to UFT and Test Recording.