Page 1 of 1

Verify Text

Posted: Wed May 07, 2014 11:04 am
by Rakesh123
Hi Guys,

I am doing automation testing on android mobile device.

My scenario is to verify the text displayed on the mobile screen or not, when I click on some button.

I can able to view the screen and text in mobile device but don't know how to verify the text displayed or not.

When I try to capture that particular object it is captured as 'Container-content'.Pls help me in sorting this.

Thanks,
Rakesh

Re: Verify Text

Posted: Fri May 09, 2014 10:06 am
by Support Team
Hi Rakesh,

May I ask you to send us a Ranorex snapshot file of the text respectively of the container which represents the text?
The following link will show you how to generate a snapshot file: Creating Ranorex Snapshot Files.
This will help us to analyze the issue!

Thanks,
Markus

Re: Verify Text

Posted: Tue May 13, 2014 5:17 am
by Rakesh123
Hi marcus,

Thanks for the reply.Please find the attached snap shot.

Thanks,
Rakesh

Re: Verify Text

Posted: Tue May 13, 2014 8:26 am
by odklizec
Hi, I'm afraid, there seems to be no text that could be validated. All "texts" in your posted snapshots appears to be just images. In a theory, you could use image validation, but that's good mainly for "static" images, which is most probably not your case. I think the best you can do is to ask your application developers to expand the AUT with some properties or use existing one (e.g. Name or DisplayName found in General section) to store the desired values.

Re: Verify Text

Posted: Thu May 15, 2014 8:17 am
by Rakesh123
Hi Marcus,

I need to verify the text(-1) displayed in the object snap shot which I have attached.

Please find the solution for this

Thanks;
Rakesh

Re: Verify Text

Posted: Fri May 16, 2014 7:00 am
by odklizec
I can't speak for Marcus, but in my opinion, there is no way to validate this text as a "text". This text is not available anywhere in your provided snapshot so Ranorex apparently don't see it as a "text". The only way around seems to be the image validation. Or you will have to ask the AUT developers to implement better accessibility support.

Re: Verify Text

Posted: Mon May 19, 2014 3:11 pm
by Support Team
Hi Rakesh,

As odklizec already wrote there is unfortunately no way to validate this text as it is not represented by a valid attribute, so thanks to odklizec for your explanation! It is perfectly right.

Regards,
Markus