|IRecorder Interface : 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.
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.