Developing Support for Recording

One way to add objects to the object repository and create tests in UFT is by recording. The UFT user starts a recording session, performs operations on the application, and then stops the recording. During the recording session, UFT records all of the user's operations as steps in a test and adds all of the relevant objects to the object repository.

To support the UFT recording capability, the Testing Agent must:

The following diagram shows the general sequence of methods that are called when recording a test. This illustrates the purpose of the methods that the Testing Agent must implement. For example, UFT calls the methods BeginRecording and EndRecording from the IRecordable interface to inform the Testing Agent when a recording session is started or stopped by the UFT user. During a recording session, when the Testing Agent decides that a user operation needs to be recorded as a step in the test, the Testing Agent calls the Record method to instruct UFT to record a step:

For more information, see: