Verify Text

Mobile Testing, Android App Testing.
Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Verify Text

Post by Rakesh123 » Wed May 07, 2014 11:04 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Verify Text

Post by Support Team » Fri May 09, 2014 10:06 am

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
.
Image

Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Re: Verify Text

Post by Rakesh123 » Tue May 13, 2014 5:17 am

Hi marcus,

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

Thanks,
Rakesh
Attachments
Container.rxsnp
(36.12 KiB) Downloaded 133 times

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

Re: Verify Text

Post by odklizec » Tue May 13, 2014 8:26 am

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.
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

Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Re: Verify Text

Post by Rakesh123 » Thu May 15, 2014 8:17 am

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

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

Re: Verify Text

Post by odklizec » Fri May 16, 2014 7:00 am

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.
Last edited by odklizec on Thu Jan 22, 2015 8:14 am, edited 1 time in total.
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: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Verify Text

Post by Support Team » Mon May 19, 2014 3:11 pm

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
.
Image