Page 1 of 1

Identify Eclipse plugin objects

Posted: Wed Jan 05, 2011 5:02 pm
by emoneta
We're testing several eclipse plugins.
I also need to test some of the Eclipse generic views such as the "Memory" view.
The memory view can show different tables and I want to verify the table's content.
However, The table does not have a ControlID. When I record a test, the table is identified only by relative index position (As well as all of the table's ancestors).

I've attached the plugin and spy screenshots.

Is there any way to uniquely identify the table (or a different object for other plugins)?
Because the plugin was not written by us, I don't know if I can add descriptive attributes to the table.

Re: Identify Eclipse plugin objects

Posted: Fri Jan 07, 2011 11:57 am
by Support Team
emoneta wrote:the table is identified only by relative index position
You mean you want to identify the "Memory" tab page independent of its index in the displayed tab pages, right?

I can't really help you from the screenshot alone. It would be good if you could provide as a Ranorex snapshot of the whole Eclipse application when the Memory tab is opened. See following section in the Ranorex User Guide on how to create Ranorex snapshots:
http://www.ranorex.com/support/user-gui ... html#c2072

It might be possible to identify the tab page by its text. Try searching up the hierarchy of the table for the "Memory" text.

Regards,
Alex
Ranorex Team

Re: Identify Eclipse plugin objects

Posted: Fri Jan 07, 2011 2:26 pm
by Support Team
I just installed Eclipse and had a look at it.
Eclipse does not use AWT/Swing, which we support by a plugin.
Eclipse uses SWT that in turn uses native elements. So those we can see via the Ranorex Spy.
Yes, unfortunately SWT does not give the native elements ControlIds,
which means they can only be accessed via the indexes or maybe the text they contain.

Regards, Roland