Page 1 of 1

Any plans for Delphi support?

Posted: Tue Jul 13, 2010 5:57 pm
by Ciege
I have a Delphi (v7 I think) application that is not one of our AUTs but another companies application that our product integrates with. Ranorex Spy does not see much of anything within the application (especially grids - it just sees the root grid element but nothing under it).

Is there any plans to support Delphi applications for test automation?

I have attached a RanorexSpy snapshot that contains the Delphi app.
This is the XPath to one of the displayed grids:

Code: Select all

/form[@title~'^Primavera\ P6\ :\ Lincoln\ Ho']/element[@class='TCSuperPanel']/element/element[@class='ToxScrollPane' and @instance='1']/element/element/element/element[@class='TCSuperPanel']/element[@class='ToxSplit']/element[@class='ToxScrollPane' and @instance='1']/element/element/element/element[@class='TCCSPageControl']/element[@class='TcsTabSheet' and @instance='0']/element[@class='TCSuperPanel' and @instance='1']/element[@class='TCSuperPanel']/element[@class='TCVirtualQueryGrid']
Thanks...

Re: Any plans for Delphi support?

Posted: Wed Jul 14, 2010 2:29 pm
by Support Team
Hi,
Ciege wrote:Is there any plans to support Delphi applications for test automation?
Sorry but there are no plans to extend the support for Delphi applications. At the moment we are fully focused on Ranorex 3.0.

We also tried a few other grids (TDStringGrid, TDBGrid) of Delphi and these controls are recognized as elements without children, too. It seems there is no MSAA implementation for such grids. Then only way at the moment is to work with Ranorex Image Based automation.

Regards,
Peter
Ranorex Support Team

Re: Any plans for Delphi support?

Posted: Wed Jul 14, 2010 3:43 pm
by Ciege
OK, thanks for the info.

Re: Any plans for Delphi support?

Posted: Mon Jul 26, 2010 4:42 pm
by atom
Or... ask you developers to create a wrapper of the delphi control that does implement MSAA

Re: Any plans for Delphi support?

Posted: Mon Jul 26, 2010 4:46 pm
by Ciege
That would be helpful, but more than any of us are willing to do.
This app that we integrate with is on our "nice to have" list of automation. So I was investigating the potential of what could be done.
No one wants to invest any extra time into it as we just hoped it would be low hanging fruit to do.

Re: Any plans for Delphi support?

Posted: Tue Nov 30, 2010 12:00 pm
by daa
All the old parts of our application are in Delphi, so I've had similar problems, especially with grids. I now have a usable solution, but it required the programmers here to put some extra low-level support in the Delphi code. This may not apply to you, but if you're on good terms with the third-party, it may help...

The Delphi "grid" looks like a grid to the eye, but has no internal structure as far as Ranorex is concerned: i.e. it's just a single big element. What the developers added was the ability to export significant information out of the grid on mouse-click, by setting an otherwise unused property of the element: "WindowText". This means that if I make the mouse click at the correct location, say a "grid cell" containing text "FOO", I can use code like this

Code: Select all

public string GetWindowText(Element aElem)
{
    return aElem.GetAttributeValue("WindowText").ToString();
}
to get the value of the "grid cell text" at that point.

I further hid this from the rest of the test code by writing an interface class called "GridCell" that implements a table-like interface. For instance, other code can just get the "text value" of a "cell" by looking at the attribute MyGridCell.Text, with the class hiding all the business of moving the mouse, clicking, and extracting the "cell value". You can also do pixel colour, tool tip value, and other interesting stuff.

Re: Any plans for Delphi support?

Posted: Fri Apr 26, 2013 11:45 am
by Florent
Hi support team,

Have you progressed in Delphi support since 2010. Is there a solution for a TDrawGird element now ? You will find a rxsnp ass attached file

Thank you in advance
2013-04-26_123902.jpg

Re: Any plans for Delphi support?

Posted: Tue Apr 30, 2013 12:51 pm
by Support Team
Hello,

Thank you for the snapshot file.
The TDrawGird is obviously a control where the accessibility is not implemented correctly. In general, this is no issue which Ranorex can fix.
I would suggest to contact the guys from Delphi regarding this issue.
As workaround you can try to use image based recording in order to validate the controls in this grid.

Regards,
Bernhard

Re: Any plans for Delphi support?

Posted: Tue Apr 30, 2013 1:13 pm
by Florent
Thank you Bernhard,

are you aware of that :
http://support.smartbear.com/viewarticle.aspx?aid=30897

it could be a way to improve Ranorex capability to solve issues with Delphi applications

by waiting let's go with image based recording but it's not a durable solution for GUI which regularly change

Regards
Florent

Re: Any plans for Delphi support?

Posted: Fri May 03, 2013 1:31 pm
by Support Team
Hello,

Thank you for the link.
This is based on RTTI, but unfortunately Ranorex doesn't support RTTI at the moment, so this will not work for us.
Thank you!

Regards,
Bernhard

Re: Any plans for Delphi support?

Posted: Wed Jul 15, 2015 12:34 pm
by APX
Support Team wrote: This is based on RTTI, but unfortunately Ranorex doesn't support RTTI at the moment, so this will not work for us.
and now, does the Ranorex support RTTI ?

Regards,

APX

Re: Any plans for Delphi support?

Posted: Fri Jul 17, 2015 3:53 pm
by Support Team
Hi APX,

Unfortunately not, but do you have any troubles to identify any elements in your Delphi application?

Regards,
Markus

Re: Any plans for Delphi support?

Posted: Tue Feb 23, 2016 4:00 pm
by intestyx
Hello :)

I have too this problem. Who knows solution that problem? (

Thanks...

Re: Any plans for Delphi support?

Posted: Thu Feb 25, 2016 9:31 am
by odklizec
Hi,

What exactly is your problem? Could you please post some more details?