UFT Extensibility library 1.2
Record Method
A SAFEARRAY of object IDs from the recorded object's ID and up the hierarchy to the highest object within the Testing Agent's environment. The ID of the recorded object is the first array element and the root object ID is the last. The total number of elements in the array is the level of the recorded object in the hierarchy.
An XML string according to the AppDescription Schema, describing the hierarchy from the specified object and up to the root object of the testing environment.
The test object method to call during the test run.
A SAFEARRAY of arguments to the method.
Description
Callback method to enable the Testing Agent to record events.
Syntax
Visual Basic
Public Sub Record( _
   ByVal envId As String, _
   ByVal objIdList() As Variant, _
   ByVal appDescriptionXml As String, _
   ByVal externalParent As String, _
   ByVal method As String, _
   ByVal arguments() As Variant _
) 
Parameters
envId
objIdList
A SAFEARRAY of object IDs from the recorded object's ID and up the hierarchy to the highest object within the Testing Agent's environment. The ID of the recorded object is the first array element and the root object ID is the last. The total number of elements in the array is the level of the recorded object in the hierarchy.
appDescriptionXml
An XML string according to the AppDescription Schema, describing the hierarchy from the specified object and up to the root object of the testing environment.
externalParent
method
The test object method to call during the test run.
arguments
A SAFEARRAY of arguments to the method.
Remarks

Using this callback method, the Testing Agent sends UFT the information necessary for invocation of a test object method. When Record is called, UFT writes a test step using this information.

The Testing Agent gets the reference to the Record method from the IRecorder reference passed to the Testing Agent by IRecordable.BeginRecording.

The Testing Agent must call the Record method before allowing the application to react to the performed operation. This enables UFT to collect information regarding the state of the application before the step is carried out.

See Also