cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing cells in Delphi grids

Highlighted
Occasional Contributor

Accessing cells in Delphi grids

Hello,


I need to access values of cell grids in a Delphi application. Testcomplete 7.5 recognizes these grids as TStringGrid and TDrawGrid. While trying to read the cell values of such a grid the following error message appears:


Error: An error occurred.

Possible reasons:

1. The application stopped responding.

2. The application was compiled incorrectly (see the Open Applications topic in the help system).

3. An error occurred in TestComplete.



Technical information:

96 0x80020006 (Unknown name.) Columns


Instead of Columns I also get GetVisibleRowCount,ColCount or RowCount depending on the object.



Now as far as I understand creating an open Delphi application means compiling the tested application with debug symbols. My question is: 


Is there ANY other way to read the values of those grid cells without shipping the whole application with debug symbols? For example feeding some additional information to Testcomplete, declaring properties inside the tested application as public or whatever? Please note that I need access to the values of all cells inside the grid, not just the ones that are currently visible on screen, so using the text recognition engine is not a good option.


Thanks in advance!

2 REPLIES 2
Highlighted
Occasional Contributor

RE: Accessing cells in Delphi grids

Hmm, does no answer mean there is no way to access those Delphi grid cells without debug information, or is this a completely unexplored topic for AQA?
Highlighted

RE: Accessing cells in Delphi grids


Hi,





Yes, the errors you get mean that the tested application was compiled without debug information, while TestComplete needs it to access the data.





Consider using the StripTDS utility shipped with TestComplete to get external debug information for your Delphi modules. In this case, you can delete the debug info files from the shipment while being able to thoroughly test exactly the same build with TestComplete. To learn more, please see the "About StripTDS" help topic:

http://www.automatedqa.com/support/viewarticle.aspx?aid=7332







Does this work for you?
-----

Alexander
Customer Care Manager
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
A new challenge is here!

Create a function to drag one element to another for the TechCorner tag!

Will you dare to take the challenge?


Scripts created in July:
- Passing custom command-line arguments as a test parameter
Top Kudoed Authors