background image
<< Supported Environments | Working In Visual Basic >>
<< Supported Environments | Working In Visual Basic >>

Working in Rose

Quick Start
3
Step 2: Working in Rose
1
If you have an existing component, reverse engineer it into your Rose model. (Skip
this step if you are already modeling your system and components in Rose.)
For EJBs, a good way to do this is with the Rose/Java Add-in. Simply make a jar
file and drop the jar file on a class diagram. Be sure to include only the source
(
.java
) files for the Remote interface, the Home interface, and the Bean itself, and
the deployment descriptors. Do not import any
.class
files compiled from the
source files because these are not properly reverse-engineered with parameter
names. For more information, see Reverse Engineering a Deployed EJB into Rose on
page 50
and the Rose J online Help.
2
Choose a template for the test generation process. This template contains
replacement variables that become populated when you generate the test script.
(A template is provided for you by default.) For more information, see Templates on
page 7 an
d Template Replacement Variables on page 119.
In Rose, right-click a model element to test and click
QualityArchitect > Select Unit
Test Template
.
3
To create a unit test and datapool, right-click the item to test and click
QualityArchitect > Generate Unit Test.
For information about testing your business logic, see Using EJB Scenario Tests to
Test Transactions
on page 70 or Using COM Scenario Tests to Test Transactions on
page 109. Fo
r information about generating EJB test scripts with the Session
Recorder, see Using the EJB Session Recorder on page 82. For information about
datapools, see Datapools on page 23.
4
If this is your first time generating a test script, you are prompted to select a test
script source directory in which to store your scripts. For more information, see
Storing Your Tests Scripts on page 6.
5
Populate the datapool.
For information about populating datapools for EJB test scripts, see Populating the
Datapool
on page 54. For information about populating datapools for COM test
scripts, see Populating the Datapool on page 105.
Step 3: Working in Your IDE
After you generate your test assets, you must add them to a project in your IDE,
where you can run the tests.
If you are using IBM Visual Age for Java (VAJ), you need to import test assets into the
VAJ repository. For details, see Importing Test Assets into Your IDE on page 58.