Page 1 of 1

Testing out iOS sample solution (minikeepass)

Posted: Mon Nov 18, 2013 8:37 am
by eafojas
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!

Re: Testing out iOS sample solution (minikeepass)

Posted: Tue Nov 19, 2013 3:20 pm
by Support Team
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

Re: Testing out iOS sample solution (minikeepass)

Posted: Wed Nov 20, 2013 3:26 am
by eafojas
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

Re: Testing out iOS sample solution (minikeepass)

Posted: Thu Nov 21, 2013 5:00 pm
by Support Team
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