Get value of Cell in table JAVA app

Ask general questions here.
WMJala
Posts: 2
Joined: Mon Jul 24, 2017 6:46 pm

Get value of Cell in table JAVA app

Post by WMJala » Mon Jul 24, 2017 6:55 pm

Hi,

I have installed the Ranorex 7.1 version using the trial to verify that I can use this tool to perform automation test over my Java app.

I have a problem to get the values of cells in a table and I only get a reference to a Java Class(please see attached screenshot). I am using the record tool and the validation step to obtain the value.
Table.png
Table.png (19.84 KiB) Viewed 416 times
Is there any way to get the values of my table ?
CellTable.png
CellTable.png (120.34 KiB) Viewed 416 times
Thanks in advance

Regards
Walter

qwertzu
Posts: 178
Joined: Wed Jan 25, 2017 11:08 am

Re: Get value of Cell in table JAVA app

Post by qwertzu » Tue Jul 25, 2017 10:06 am

Hi WMJala,

I was not able to see your screenshot at first. Therefore I have to edit my post here.
It seems like the issue lies within your application since the "not wanted" value is displayed here.
As pavel writes in the post below, you should contact your developers.

regards,
qwertzu
Last edited by qwertzu on Tue Jul 25, 2017 2:55 pm, edited 1 time in total.

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

Re: Get value of Cell in table JAVA app

Post by odklizec » Tue Jul 25, 2017 12:05 pm

Hi Walter,

I'm afraid, there is most probably nothing you can do about this without changing the way the table is rendered. In other words, your developers (developers of the AUT) will have to edit the table to make it display its content "properly". Please check this post, most probably related to your problem as well:
https://www.ranorex.com/forum/how-do-ra ... tml#p31787
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

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Get value of Cell in table JAVA app

Post by krstcs » Tue Jul 25, 2017 1:46 pm

Anyone who has ever done anything with Java tables will tell you that they are notoriously bad at presenting useful data, especially for automation.

As Pavel said, you will most likely need to get your devs to add some code to aid in automation and identification. There are usually at least a few properties in a cell that Ranorex can see, if the values are put there then you should be able to get what you need.
Shortcuts usually aren't...

WMJala
Posts: 2
Joined: Mon Jul 24, 2017 6:46 pm

Re: Get value of Cell in table JAVA app

Post by WMJala » Wed Jul 26, 2017 2:07 pm

Thanks I will contact with my development team