background image
<< Viewing the XML Log | Testing with Iterative Development >>
<< Viewing the XML Log | Testing with Iterative Development >>

Part 4. Testing COM Components

99
4
Testing COM
Components
This section contains the information you need to use Rational QualityArchitect to
test COM-based component applications.
Topics include:
s
Overview
s
Requirements for testing COM components
s
Working with the sample model
s
Executing test scripts
s
Using COM scenario tests to test transactions
s
Using the OLE DB Query Builder to add verification points
Overview
With QualityArchitect, you can test COM components after they have been built, or
you can test iteratively during the development process.
Testing Existing Objects
To test completed COM components, you can use the type library import tool in Rose.
The type library import tool defines the appropriate interfaces, coclasses, and classes
and the relationships among them. The structure for each COM object created in the
model by the imported type library is the same as the structure created with the Rose
ATL (ActiveX Type Library) object creation wizard.
By default, the import tool does not capture the methods on each interface. You can
capture the methods afterwards in one of two ways:
s
By doing a full import from the Rose Component view
s
By doing a full import of selected interfaces from the Logical view
Note:
The methods must be imported into the model in order to model method
messages in sequence diagrams.