background image
<< Testing with Iterative Development | Generating COM Test Assets >>
<< Testing with Iterative Development | Generating COM Test Assets >>

Requirements for Testing COM Components

Requirements for Testing COM Components
101
Requirements for Testing COM Components
To test COM components with QualityArchitect, you need the following:
s
Visual Basic 6.0
s
A model that represents your COM interfaces and coclasses
You can obtain this model by importing a type library.
In addition, QualityArchitect must be able to find the Visual Basic resource compiler
file,
rc.exe
. QualityArchitect searches for it on the System or User path and then looks
in one of the following typical installation locations:
s
<Visual Studio Directory>\Common\MSDev98\Bin
s
<Visual Studio Directory>\VB98\Wizards
If QualityArchitect fails to find
rc.exe
, you are prompted to supply the path.
You can also specify the path to
rc.exe
in the Rational QualityArchitect Options dialog
box. To do so:
1
In Rose, click
Tools > QualityArchitect > Console
.
2
Click the
Edit Rational QualityArchitect Options
button.
3
Click the
VB Options
tab.
4
Specify the location of
rc.exe
in the Resource Compiler text box.
Working with the Sample Model
The installation procedure installs a sample Rose model--
rqacomsample
--that you can
use to try out QualityArchitect. This model reflects a traditional transaction
processing system that allows users to credit or debit their accounts on a server.
The
rqacomsample
model already contains an imported type library and a component
associated with a Visual Basic source project.
Understanding the Component View
The Rose component view shows the physical pieces of software that are included in
the model, for example:
s
A COM object (RQACOMSample Ver 1.0) that is associated with the imported type
library