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
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 and 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.
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.
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.