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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s