| || |
I have a problem with WinRunner. The program does not recognize an object, although it is available in GUI. It is a Delphi object that I have made known as follows:
add_dlph_obj ( "TStringGrid", "object", "class MSW_class dlph_name", "dlph_parent ","", DLPH_GRID);
but without success?
Can one help me?
Thank you [img]/images/graemlins/confused.gif[/img] [img]/images/graemlins/confused.gif[/img]
This is a pretty old post, so I'm not sure if you already have a resolution. Here's my two cents.
I work with Delphi apps as well. I have found that I have to customize the Delphi objects in a configuration script. It's a bit of work up front but you only have to do it once.
1. Open a new script.
2. Goto >Tools >GUI Map Configuration.
3. >+ (to add an custom class). Opens 'Add Class'
4. Use Finger to 'spy' the object. >OK
5. >'configure class' button on GUI Map Configuration.
6. Set 'Mapped to Class' to closest definition of your object.
7. Set as few properties needed to uniquely identify the object as 'Obligatory'. I typically use class and label. Avoid using MSW_id, x, y - they changes with each run of you AUT.
8. >Paste. This will paste the code to customize your objects into the new script.
Follow these steps with each object of your AUT. Call this first thing with each run of your project and WR will then consistently identify the objects in the GUI.
Hope this helps.