Enable Communications between Unified Functional Testing and Delphi Application

The following describes how to:

•Use the MicDelphiAgent.pas module to enable communications between Unified Functional Testing (UFT) and each Delphi project that would be tested.

•Configure support for the TwwDBGrid from InfoPower.

Link to the MicDelphiAgent.pas Module to Enable Communications

It must be performed the following steps for each application that would be tested.

1.Add the <UFT Installation folder>\dat\Extensibility\Delphi folder to the Delphi project search path, or copy the contents of the <UFT Installation folder>\dat\Extensibility\Delphi folder to the project folder.

2.Add MicDelphiAgent to the Uses section of the 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 the Delphi project.

Note: If the application includes the TwwDBGrid from InfoPower, it must be added support for this grid as described below.

Configure Support for TwwDBGrid

If the application includes the TwwDBGrid from InfoPower, do the following to enable support for this grid:

1.Add MicWWSupport to the Uses section of the 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 the application.

Advertisements