We are evaluating TestComplete to test our application developed in Delphi. I have recorded a script and searched i Object repository for one of the objects information. In its properties list wText is not listed. So, can't I extract the text in that object.
Re: Not able to extract values from Delphi objects
The existance of the wText property is contingent on whether or not TestComplete recognizes the object as belonging to a class that would get the wText property. Not all components are necessarily recognized that way by TestComplete.
For example, we have our own custom class for certain edit fields in our DelphiApplication. The class name is something like TGTSSimpleField. Because this class is not recognized by TestComplete, wText is not available on it.
However, other native properties of the object are available. For example, that TGTSSimpleField has a native "Text" property that contains the text value of the edit field. I think, though, that these other Native properties are only available if the application is compiled as Open.
So, you have two steps you need to do.
1) Check to see if the class is a recognized class by TestComplete. If not, you can added it to the Object Mapping (Project | Properties) for the project for the class type it is intended as (such as Edit). That will then expose the Extended properties generated by TestComplete.
2) Compile your application as open. Reference the help topic for more information on how to do this. I highly recommend doing this, actually, in that it allows for closer examination and control of the application under test.
Automated Testing Evangelists
Definition expert - noun - Unknown drip under pressure