|
以下信息希望对你有所帮助
There are two ways to setup Delphi Support with the TestSrvr Unit. You can run the Delphi Project Setup Wizard or Link to the TestSrvr.pas module. The TestSrvr unit is a WinRunner agent that handles communications between WinRunner and your Delphi application.
Using the Delphi Project Setup Wizard To Enable Communications
You must run the Wizard for each Delphi project that you want to test.
Run the Delphi Project Setup Wizard and follow the instructions on the screen.
Recompile your project.
Linking to the TestSrvr.pas Module to Enable Communications
You must perform the following steps for each project that you want to test.
1. Add the WinRunner Installation folder\TestSrvr folder to your Delphi project search path or copy the contents of the WinRunner Installation folder\TestSrvr folder to your project folder.
2. Add TestSrvr to the Users section of your applications project file (project.dpr) as shown in the example below:
program flight;
uses
TestSrvr,
Forms,
Windows;
($R*.RES)
begin
Application.Initialize
Application.Title :='Flight Reservation';
Application.Run;
end.
Note that TestSrvr must be the first unit in your project.
3. Compile your Delphi project.
Configuring Support for TwwDBGrid
If your application includes the TwwDBGrid from InfoPower, follow the instructions below to
enable support for this grid.
1. Add MercWwControl, to the Users section of your applications project file (project.dpr) after TestSrvr as shown in the example below:
program flight;
uses
TestSrvr,
MercWwControl,
Forms,
Windows;
($R*.RES)
begin
Application.Initialize
Application.Title :='Flight Reservation';
Application.Run;
end.
2. Recompile your appliction. |
|