background image
<< Script Generation from Rose | Modifying a Generated Test Script >>
<< Script Generation from Rose | Modifying a Generated Test Script >>

Support for Performance Testing

10
Chapter 2 - Basic Concepts
The basic steps for creating a scenario test from Rose are as follows:
1
Create a sequence or collaboration diagram in Rose.
2
Select the objects involved in the transaction and add them to the diagram.
3
Add messages for the operations that implement the transaction.
4
Add parameter names and data to the messages (optional).
In this step, you can modify message syntax to permit automated data correlation.
For more information, see Message Signatures and Data Correlation on page 13.
5
Select a scenario test template.
6
Generate the scenario test and optionally insert verification points.
For more information, see Using the Java Query Builder to Add Database Verification
Points
on page 72 and Using the OLE DB Query Builder to Add Database Verification
Points
on page 112.
7
Edit datapool data.
For more information, see Datapools in Scenario Tests on page 23. For information
about creating datapools for EJB unit tests, see Generating EJB Unit Test Scripts and
Datapools from a Rose Model
on page 52. For information about creating datapools
for COM unit tests, see Generating COM Unit Test Scripts and Datapools from a Rose
Model
on page 102.
Support for Performance Testing
In addition to using scenario test scripts for functional testing, you can use these
scripts to evaluate the performance of your components under a load of multiple
simulated users. To capture performance data, you need to:
1
Modify the default template to create an object for measuring performance.
2
Modify your generated test scripts to capture performance data.
3
Execute your test scripts from Rational TestManager.
The following examples are for EJB test scripts, but the same procedures apply for
COM test scripts as well.
Modifying the Template
To create test scripts that capture performance data during test script execution, you
need to first create a modified version of the default scenario test template for your
application server. You will find this template in
<RQA Home>\templates\ejb\Scenario
Test Templates\ejb\appserver\*_scenario.template
.