cross platform code for Mobile and Web

Ranorex Spy, Recorder, and Studio.
kameshraj
Posts: 3
Joined: Wed Oct 23, 2013 10:52 pm

cross platform code for Mobile and Web

Post by kameshraj » Fri Jan 10, 2014 12:58 am

Hi
My application runs on Web, iOS and Android. The workflow for these apps are same, the IDs for UI elements are different. I am wondering if it be possible to run my code across these 3 platforms. This is what i am trying to achieve
1. Identify elements for Web and call it web_repo
2. Identify elements for Android and call it android_repo
3. Identify elements for iOS and call is ios_repo
4. I can name all the UI elements same in these 3 repos

Question
************
1. If i develop my test case using one repo (say web_repo) can i run the script using android_repo or ios_repo
2. If above is not possible what is the best practice for cross platform automation?

Appreciate any advice on how to do cross platform. Thanks in advance

kameshraj
Posts: 3
Joined: Wed Oct 23, 2013 10:52 pm

Re: cross platform code for Mobile and Web

Post by kameshraj » Sun Jan 12, 2014 6:36 am

bump!
any suggestions?
Is it possible to change the repository for a test script on the fly?

User avatar
BernhardS
Ranorex Guru
Ranorex Guru
Posts: 36
Joined: Tue Dec 17, 2013 6:35 pm

Re: cross platform code for Mobile and Web

Post by BernhardS » Wed Jan 15, 2014 3:16 pm

Hello kameshraj,

It depends hardly on the applications. I am afraid that the structure of the different apps is not equal. I think the path to the elements is completely different.
I would not recommend to change the repository during the run time in order to avoid unexpected behavior.
If you are using Xamarine in order to implement the apps I would recommend to read the blog "Automate Xamarin Cross-Platform Mobile App Testing" on our website.

Regards,
Bernhard