background image
<< Chapter 17 Testing Delphi Applications | Adding the Rational Object Testing Library >>
<< Chapter 17 Testing Delphi Applications | Adding the Rational Object Testing Library >>
Making Delphi Applications Testable
Testing Delphi Applications
17-2
Making Delphi Applications Testable
Before you can test your Delphi applications, you must install the Rational Object
Testing Library for Delphi and the Rational Test Delphi Enabler. You then need to
run the Enabler, which adds one line of code (
SQASrvr,
) to your project, and then
you need to recompile your project in Delphi to make it Robot-testable.
Installing the Rational Object Testing Library and Enabler
Be sure to install Delphi 3.0, 4.0, or 5.0 for Windows NT, 95, 98, or 2000 before you
install the Object Testing Library for Delphi and the Enabler.
To install the Library and Enabler:
1. Insert the Rational Suite CD-ROM into your CD-ROM drive.
2. Do one of the following:
From the Windows taskbar: Choose Start >
Run.
From Program Manager: Choose File >
Run.
3. Type
drive:\SETUP.EXE
and choose OK to start the Rational Setup wizard.
4. When the list of Rational Test Enablers appears, choose Rational Test Delphi
Enabler.
5. Follow the onscreen instructions to complete the installation.
Running the Rational Test Delphi Enabler
After you install the Object Testing Utilities, you need to run the Delphi Enabler,
which adds one line of code to your project, and then you need to compile the
project.
You only need to run the Enabler once for each project you want to make testable.
NOTE: You may freely distribute the Rational Object Testing Library for Delphi
and the Enabler. The SQAOBTST directory on the CD-ROM contains a setup
wizard for these and other items. You may copy this directory to a network drive
or to a diskette for distribution to your developers.
NOTE: The Rational Object Testing Library is not visible and is non-intrusive,
and there are no license restrictions on it. Therefore, you can leave it in the
application when you distribute it.