Delphi Applicaiton - How to retrieve runtime data?
Plz let me know on the following (I am new to TestComplete but I have knowledge in QTP).
I am trying to automate Delphi based application using TestComplete 4.
I am unable to retrieve run time data from the Screen which is under test. Instead I am getting only the data that was stored in object repository.
Used following code for retrieve data from screens:
"NameMapping.SysAnand.VBTPersonnel1.TfrmContainer1 .MDIClient1.TMainForm1.TPageControl1.TTabSheet1.TS crollBox1.TVBTDBEdit4.WndCaption"
Plz let me know how to retrieve run time data from any screen.
Used following code for populating data in screens:
"NameMapping.SysAnand.VBTPersonnel1.TfrmContainer1 .MDIClient1.TMainForm1.TPageControl1.TTabSheet1.TS crollBox1.TVBTDBEdit4.Keys("anand Test")"
Re: Delphi Applicaiton - How to retrieve runtime data?
There are two ways to work with an edit control's text:
1. If the control's WndClass value is in the "Object Mapping | Edit Box" section of a project's properties, the text can be accessed via the wText wrapper property added to the object by TestComplete (see the "Project Properties - Object Mapping Options" help topic for more information).
2. If the application is compiled as Open with debug information, you can use the control's native Text property to work with the control's text. Please see the "Open Applications" and "Debug Info Agent" help topics for more information.