Use native browsers for mobile web testing(IOS/Android) - 2018

Mobile Testing, Android App Testing.
jsmith
Posts: 32
Joined: Mon Mar 05, 2018 4:03 pm

Use native browsers for mobile web testing(IOS/Android) - 2018

Post by jsmith » Wed Dec 05, 2018 3:44 pm

Hello,
I have been on a mission these last two weeks to test real devices and emulated devices with our browser based app. Whilst we have the option to push browser tests to BrowserStack, this is very expensive if you want to test on devices. So I am tasked with investigating if Ranorex can run tests on real and emulated devices.
I need to test our browser based product via the native apps, Chrome and Safari. For this reason, using the RxBrowser is out of the question. After all, my end users will not be using the RxBrowser.
I searched the Ranorex site for help/information/instructions. I read on the forum that Ranorex can test native browsers, but the link provided sent me to the user guide and the user guide doesn't tell you how to test on native browsers, it tells you how to install RxBrowser.
Eventually I found a site with a video that walked you through setting up Ranorex and Appium to test on real and simulated Android devices.

Today I have found the tempting https://blog.testproject.io/2018/06/11/ ... thout-mac/, but this looks like using something that isn't Ranorex, and now that I'm invested in Ranorex, I'd rather keep using it.

Can anyone advise how I could now connect the ipad on my desk for the same purpose, and then, later, how to run an emulator for iOS devices, and press Run on Ranorex Studio and have my tests execute on Safari, on either a real device, or an emulated one?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4047
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Use native browsers for mobile web testing(IOS/Android) - 2018

Post by odklizec » Thu Dec 06, 2018 8:45 am

Hi,

As far as I know, there is no way to run Ranorex tests on mobile devices, using native web browsers. This is why there is RxBrowser. It's Android/iOS security thing, which prevents Ranorex from accessing/controlling native (mobile) web browsers. In other words, there is no way around, no matter what. It's not a Ranorex flaw. It's just iOS/Android limitation for 3rd party apps.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

jsmith
Posts: 32
Joined: Mon Mar 05, 2018 4:03 pm

Re: Use native browsers for mobile web testing(IOS/Android) - 2018

Post by jsmith » Thu Dec 06, 2018 9:21 am

Hello odklizec,
Thank you for your reply. I have been able to achieve this with Android real devices and an emulator. I was first alerted to the possibility of doing this by this post:

Code: Select all

https://www.ranorex.com/forum/viewtopic.php?f=23&t=5761&p=47806&hilit=native#p47806
:shock:
I have effectively ticked off android. Now I'm suffering trying to get Apple devices to work along similar lines.

I can provide a link to a video that showed me how to do the android devices, but wasn't sure if that was allowed on the forum.