Calling into COM Objects
A class CComDriver will be used to load the COM object and call into the methods of the COM components. Invoke ,GetProperty, SetProperty methods of CComDriver will be overloaded to work the Variable and Job objects. For memory allocation and deallocation for the parameters, the standard COM practice will be followed.
[IN] Params The scripting engine is responsible for allocation / deallocation of the memory
[OUT] Params The memory allocated by the COM component for the same will be deallocated by the scripting engine
[IN/OUT] COM component will deallocated the memory in the param and allocate new memory for the same. Scripting engine will be responsible for freeing memory allocated by the COM component
CComDriver is the class that will be used to call into COM Components. CComDriver initializes the COM Libraries as STA. All COM Components (STA/MTA) can be called from the Scripting engine.
2. The following Variant Type will be supported as input/output parameters.
VT_I2, VT_I4, VT_R4, VT_R8, VT_CY, VT_DATE, VT_BSTR, VT_BOOL, VT_DECIMAL, VT_I1, VT_UI1, VT_UI2, VT_UI4, VT_INT, VT_UINT, VT_VARIANT
Any suggestions what to tests to make, what approach to take etc. would be greatly appreciated.
Thank you 4 ever [img]images/icons/smile.gif[/img] ,
ISEB Foundation in Software Testing Certified