|
问题:在网上很多资料中提到:QTP的delphi插件安装后,还需要对被测程序进行配置才能正常使用。
方法如下,但我很不理解这具体怎么去设置请大家指点迷津!!!!!???
1. Add the <QuickTest Professional Installation folder>\dat\Extensibility\Delphi folder to your Delphi project search path or copy the contents of the <QuickTest Professional Installation folder>\dat\Extensibility\Delphi folder to your project folder.
2. Add MicDelphiAgent to the Uses section of your application's project file (project.dpr) as shown in the example below:
program flight;
uses
MicDelphiAgent,
Forms,
Windows;
($R*.RES)
begin
Application.Initialize
Application.Title :='Flight Reservation';
Application.Run;
end.
3. Compile your Delphi project.
Note: If your application includes the TwwDBGrid from InfoPower, you must add support for this grid as described in Configuring Support for TwwDBGrid.
Configuring Support for TwwDBGrid
If your application includes the TwwDBGrid from InfoPower, follow the following instructions to enable support for this grid.
1. Add MicWWSupport to the Uses section of your application's project file (project.dpr) after MicDelphiAgent, as shown in the example below:
program flight;
uses
MicDelphiAgent,
MicWWSupport,
Forms,
Windows;
($R*.RES)
begin
Application.Initialize
Application.Title :='Flight Reservation';
Application.Run;
end.
2. Recompile your application.
You are now ready to create and run tests on Delphi applications. |
|