Ranorex tracking problem for trees inside trees

Ranorex Studio, Spy, Recorder, and Driver.
Ziyad
Posts: 1
Joined: Mon Mar 14, 2011 2:55 pm

Ranorex tracking problem for trees inside trees

Post by Ziyad » Mon Mar 14, 2011 3:10 pm

Hi,

i wanna ask about the following problem which appeared when recording a scenario on eclipse:

Please open the attachment file which is a snapshot for the tree i need to access in Ranorex which made the problem. When i am trying to access element for example "r0" as in the snapshot in side the parent tree which is named "Main", the ranorex spy can't give me the ability to read the value for that element? which means it track the elemnt "r0" but in the properties for that object it didn't found its value?

Any help please as soon as possible.

Thanks a lot.

Ziyad
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex tracking problem for trees inside trees

Post by Support Team » Mon Mar 14, 2011 7:41 pm

Hello Ziyad,

Getting data from Java SWT Treeviews with multiple columns is currently not supported by Ranorex.
We might add this in a future version by adding SWT support to the Java Plugin.

As a workaround, add the parent tree (Tree ' SystreeView32') to the GDI capture list in Spy
(context menu "Add class name to GDI Capture list")
You should then be able to identify the cell's content ("RawText" elements), but only if it is visible (e.g. not scrolled)

Michael
Ranorex Team

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex tracking problem for trees inside trees

Post by odklizec » Tue Dec 17, 2013 9:50 am

Hello,

I'm sorry to open such old thread but are there some (near) plans to support the multi-column SWT Trees? I just found that such trees are still not supported? True, we can use the RawTexts, but it would require some more programing, which we would like to avoid for such simple task like reading/validating values from the java tree columns ;) Thank you in advance.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
BernhardS
Ranorex Guru
Ranorex Guru
Posts: 32
Joined: Tue Dec 17, 2013 6:35 pm

Re: Ranorex tracking problem for trees inside trees

Post by BernhardS » Wed Dec 18, 2013 5:01 pm

Hello odklizec,

May I ask which version of Ranorex are you using?
Can you please post a Ranorex Snapshot file of your application? It would also be helpful to have an example application in order to analyze the issue.
Thank you!

Regards,
Bernhard

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex tracking problem for trees inside trees

Post by odklizec » Thu Dec 19, 2013 10:06 am

Hi Bernhard,

I'm using latest Rx (4.1.4). Please find the Snapshot attached to this post. Unfortunately, I can't provide you with the application as it's not released yet. But I just tested it with a simple swt tree (with multiple columns) and it does not work as well. Spy picks only the elements in first tree column. You can find the sample TestTree.jar (including source) attached to this post. Hope this helps.
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex tracking problem for trees inside trees

Post by Support Team » Mon Dec 23, 2013 3:34 pm

Hello odklizec,

Thank you for the *.jar file and the snapshot file.
Unfortunately there is no other workaround that GDI at the moment. I added an entry in our bug tracking system and we will discuss the issue internally. Unfortunately I cannot promise if we will support SWT in the future at this time.

Regards,
Bernhard