UFT scripts are not identifying Delphi objects while running.
Question ID: 108445
0
0

UFT scripts are not identifying objects while running. We tried to find objects using objects spy and found that UFT is not able to find the class names of the log in screen.

The object is identified, but the class name is having a value as "DelphiObject" instead of "DelphiEdit".
on UFT 12.54.

Marked as spam
Posted by (Questions: 26, Answers: 0)
Asked on June 13, 2018 2:37 pm
165 views
Answers (1)
0
Private answer

There may be an issue with Enable Communications between Delphi Add-in and Delphi Application.

There are KB article from MF/HPE to fix this [KM00797992][1] as per the article :

**- 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 datExtensibilityDelphi folder to the Delphi project search path, or copy the contents of the datExtensibilityDelphi 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.

**- If above does not work, please try reinstall the UFT.**

[1]: https://softwaresupport.softwaregrp.com/group/softwaresupport/search-result/-/facetsearch/document/KM00797992

Marked as spam
Posted by (Questions: 0, Answers: 27)
Answered on June 13, 2018 3:04 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top