background image
<< Part 2. Basic Concepts | Templates >>
<< Part 2. Basic Concepts | Templates >>

Storing Your Tests Scripts

6
Chapter 2 - Basic Concepts
A unit test tests the behavior of an individual method or operation.
A scenario test tests the behavior of components as specified in an interaction diagram.
These tests are intended to replicate the sequence of events in a transaction, and as
such, test the implementation of the transaction. You can use interaction diagrams to
construct simple scenario tests involving a single component or complex tests
involving multiple components.
In addition, you can generate complex scenario tests by directly interacting with
deployed EJBs using the EJB Session Recorder. For details, see Using the EJB Session
Recorder
on page 82.
Storing Your Tests Scripts
Projects for storing test assets are created in the Rational Administrator. Each project
can contain several datastores--for example, a datastore for test assets, a datastore for
requirements, and a datastore for change requests.
Certain test assets for QualityArchitect, such as datapools, lookup tables, and log files
are stored in the test datastore. Test scripts, however, can be stored independently of
the test datastore, in a location of your choice, where they can be placed under source
control. When you generate your first test script, you will be prompted to log in to a
project and to select a directory for storing your test scripts. QualityArchitect
maintains an association between this directory and the project's test datastore,
making it possible to execute test scripts directly from TestManager. You can change
this location afterwards by clicking the Rational Options button on the Rational
Console and then clicking either the VB Options or Java Options tabs.
Unit test scripts are stored in the
unittests
subfolder within your specified test script
folder. Scenario tests are stored in the
scenariotests
subfolder. Tests recorded with the
EJB Session Recorder are stored in the
recordedtests
subfolder. Stubs are stored in the
Stubs
folder.
Note:
If you want to share your test scripts with a team, be sure to use a UNC path
(
\\server-name\directory-path)
to create the project and a UNC path to specify your script
source directory. Failure to do both of these will result in a project and script source
that cannot be used in a group environment.
To create a new project with the Administrator:
1
Click
Start > Programs
<
Rational ...
>
Rational Test > Rational QualityArchitect
Console
.
where <
Rational ...
> is the name of the Rational product you have installed--
for example, Rational Suite DevelopmentStudio.