Implementing GetRunTimeObject and Defining the Object Property
Implement the GetRunTimeObject method to return the IDispatch pointer of the run-time COM object corresponding to the specified object ID.
The GetRunTimeObject is the only method in the IRunTimeObjectSupplier interface. Implement this interface only if the objects in your environment are COM objects (or are represented or interfaced by COM objects).
If you implement GetRunTimeObject, you must also define the Object property for the relevant test object classes in the testing environment XML. You define the Object property in an Operation element, as follows:
<Operation Name="Object" PropertyType="Property_Get">
<ReturnValueType>
<Type VariantType="IDispatch"/>
</ReturnValueType>
</Operation>
For information on the syntax of the testing environment XML, see the Testing EnvironmentSchema.