Working in Rose
Step 2: Working in Rose
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
) files for the Remote interface, the Home interface, and the Bean itself, and
the deployment descriptors. Do not import any
files compiled from the
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
To create a unit test and datapool, right-click the item to test and click
QualityArchitect > Generate Unit Test.
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.
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.