| IRecorder Interface : Record Method |
| 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 _ ) |
- 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.
Using this callback method, the Testing Agent sends the testing tool the information necessary for invocation of a test object method. When Record is called, a test step is written 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 the collection of information regarding the state of the application before the step is carried out.

