Enable communications between UFT and your Delphi application

You must perform the following steps for each application that you want to test.

  1. Add the <UFT Installation folder>\dat\Extensibility\Delphi folder to your Delphi project search path, or copy the contents of the <UFT 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.

Configure Support for TwwDBGrid

  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.