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
cross platform code for Mobile and Web
Re: cross platform code for Mobile and Web
bump!
any suggestions?
Is it possible to change the repository for a test script on the fly?
any suggestions?
Is it possible to change the repository for a test script on the fly?
Re: cross platform code for Mobile and Web
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
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