Validation of toast in Android

Mobile Testing, Android App Testing.
mysanchez
Posts: 8
Joined: Mon Nov 04, 2013 7:40 am

Validation of toast in Android

Post by mysanchez » Thu Nov 21, 2013 1:38 pm

How do you validate if a toast message appears inside an Activity? And does it store it in the repository as a unique UI element which is different from a toast message with different text but from the same Activity?

Thanks,
Miguel

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

Re: Validation of toast in Android

Post by Support Team » Thu Nov 21, 2013 4:01 pm

Hi,

Please take a look to following post
http://www.ranorex.com/forum/validating ... t4337.html

Regards,
Peter
Ranorex Team

mysanchez
Posts: 8
Joined: Mon Nov 04, 2013 7:40 am

Re: Validation of toast in Android

Post by mysanchez » Wed Nov 27, 2013 3:38 am

I have tried the approach of changing the RanoreXpath to the ff:

Code: Select all

/mobileapp[@title='yourAppTitle']//text[@caption~'ToastCaption]  
It does not work for me even if I change the app title to the package name like: com.example.mobileapptest
I am not sure if this is the right approach, because I am not even able to see the toast in the Ranorex Spy, so I am wondering how to even store the toast caption in the repository.

Regards,
Miguel

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

Re: Validation of toast in Android

Post by Support Team » Thu Nov 28, 2013 2:07 pm

Hello Miguel,

Could you please post or send us ([email protected]) a Ranorex Snapshot of your application?
This would help us in analyzing your issue.
Please take a look at our User Guide for more information on how to create snapshot files.

Thanks in advance.

Regards,
Markus (T)