Page 1 of 1

Is a new Solution required for Mobile App Testing

Posted: Tue Sep 07, 2021 8:06 pm
by DJB2308
Is it best to create a new solution for an Android Mobile app testing/automation or can I create/configure this as a new Test Suite within an existing solution? I have several web/browser based automation scripts currently running. Now I'm trying to implement automation scripts associated with our Android mobile app. The web/browser and app use the same elements. I'm just not sure how to implement the mobile app testing set up within the existing solution. All instructions that I have found on the Ranorex site are showing to create a new solution.
Thanks in advance!

Re: Is a new Solution required for Mobile App Testing

Posted: Wed Sep 08, 2021 8:05 am
by odklizec
Hi,

You can definitely combine Desktop, Web and Mobile automation in one solution. Basically, you can define which mode you want to use in Recording settings...
RecorderMode.png

Re: Is a new Solution required for Mobile App Testing

Posted: Fri Sep 10, 2021 3:59 pm
by DJB2308
Thank you for the information. I have updated the Recorder UI mode for my mobile recording and those scripts are working as expected.

I have left the Recorder UI mode for all my existing web-based recording as Global (default). As long as the proper endpoint is selected before launching the test cases, my new mobile test cases and my existing web test cases all run successfully against my local repo.

If I do not have the appropriate endpoint selected, the scripts fail because the proper end point is not being used and the proper element is not located. I thought this was due to the Record UI mode for my web-based recording still being set to Global. I tried changing that to "Desktop & Web" but that had no effect. The endpoint still had to be selected/set before launching the scripts.

How will this work if I'm running the scripts nightly against an Azure Repo and using a VM? If I have to manually select the correct endpoint when running locally, how will the correct endpoint be selected when running remotely from a VM? Do I set the Desktop/Web endpoint as my root so that those test cases run nightly as they do now? Am I limited to only running mobile test cases locally/manually?
Endpoints.jpg

Re: Is a new Solution required for Mobile App Testing

Posted: Mon Sep 13, 2021 7:00 am
by odklizec
Hi,

In my opinion, for this particular case, you will have to switch the endpoints in runtime, using code described here:
viewtopic.php?f=23&t=12569&p=51229#p50199