Testing out iOS sample solution (minikeepass)

Mobile Testing, Android App Testing.
eafojas
Posts: 8
Joined: Wed Nov 06, 2013 8:27 am

Testing out iOS sample solution (minikeepass)

Post by eafojas » Mon Nov 18, 2013 8:37 am

Hello,

I'm trying to run the iOS sample solution minikeepass, but I'm having a problem making it work. I'm trying to automate the solution using iOS 7 with ranorex version 4.1.2.16100 which supposedly have and iOS 7 support. It can't find the TextDatabaseName which is the textfield for the database name in the table. I've attached the generated report so you can see the error. I also tried to run the same solution using iOS 6 device, the solution managed to get passed the adding of new account but when it comes to pressing the entry button in an action sheet, the solution can't find the entry button view. I'll try to post the report of the 2nd one next time. Thank you for your time! Hope to hear from you soon!
Attachments
Reports.rar
generated report
(384.29 KiB) Downloaded 159 times

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

Re: Testing out iOS sample solution (minikeepass)

Post by Support Team » Tue Nov 19, 2013 3:20 pm

Hello eafojas,

Thank you for the report file.
The sample solution was made for iOS 6. In iOS 7 the RanoreXPath to some elemens are not the same as in iOS 6.
Please modify the RanoreXPath for the specific elements in order to find the elements.
A new sample solution should be part of the next Ranorex version.

Regards,
Bernhard
.
Image

eafojas
Posts: 8
Joined: Wed Nov 06, 2013 8:27 am

Re: Testing out iOS sample solution (minikeepass)

Post by eafojas » Wed Nov 20, 2013 3:26 am

Hello Bernhard!

Thank you very much for your answer! I managed to make it work now. I'm just wondering because as you said, the RanoreXPath of elements are different for iOS 6 and iOS 7. Should I make separate solutions for testing the same actions for iOS 6 and iOS 7? Or is there a way to check the OS version of the device and automatically change the RanoreXPath of elements during playback?

Thank you!

Regards,
Edgar

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

Re: Testing out iOS sample solution (minikeepass)

Post by Support Team » Thu Nov 21, 2013 5:00 pm

Hello,

Yes, this is possible, but you have to use user code in this case.
You can use the following code in order to get the version of the device.
var mobileAppRepoElement = repo.YourMobileApp;  
MobileApp MyApp = MobileApp(mobileAppRepoElement );  
MyApp.OSVersion();
Regards,
Bernhard
.
Image