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

Mobile Testing, Android App Testing.
kroon
Posts: 1
Joined: Tue Feb 18, 2014 9:10 am

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

Post by kroon » Tue Feb 18, 2014 9:53 am

Hi,
It's my understanding that it's not possible to test browsers on mobile devices with Ranorex, and only tests apps?

But I want to test the default browsers on mobile devices like Android and iOS. Is that's possible in some way?

What is needed? And how to setup this?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Tue Feb 18, 2014 4:03 pm

Hi kroon,

Unfortunately Ranorex is just able to automate properly instrumented apps.
In general it is recommended to use "User Agent Switcher" to test mobile browsers.
Firefox: (https://addons.mozilla.org/de/firefox/a ... -switcher/)
Chrome: (https://chrome.google.com/webstore/deta ... pkjnoahfmg)
Internet Explorer: (http://www.iegallery.com/Addons/Details/2040)

Regards,

Markus (S)
.
Image

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Tue Feb 18, 2014 4:06 pm

No, this is currently not possible, and probably will not be anytime soon.

1. For Apple iOS products, the Ranorex library must be compiled into the source code of the app. Apple will NOT allow that to happen with Safari on iOS, so this will probably never happen.

2. For Android, you would need the APK file for the default browser, which depends on the device, Samsung uses their own, HTC another one, etc., so they are all different. The device makers keep a very tight control on their software, so this is probably not possible either.

You might be able to download the APK for Firefox on Android, bundle the Ranorex library into it and then side-load it onto a device, but that isn't the default browser anymore.

My recommendation would be to use Firefox or Chrome on your desktop and download one of the many "User-Agent" changer addons. Change the User-Agent to iOS-Safari or Android, etc., re-size the view to the appropriate pixel size and test that way. You aren't testing the browser, but the server's served pages, so this method should be just as good. You want to see what the server does, you don't care about the browser as long as the server is pushing pages correctly to what it thinks is an iOS/Android device.
Shortcuts usually aren't...

gilbar16
Posts: 109
Joined: Wed Mar 26, 2014 6:23 pm

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

Post by gilbar16 » Wed Dec 09, 2015 6:19 pm

Hello krstcs,

Can you please a little bit more details on how you use Ranorex Studio with User Agent Switcher (Chrome extension, in particular)?

You do the Ctrl+Shift+I to go to the Developers mode.
You select iOS or Android device.

Will this screen from the Developers mode, showing the mobile device look-alike, the main screen for your automated testing?

Do you select Mobile or Web in the Choose Technology screen?

In the Chrome version, is there any Import option/feature for adding new devices or can you only add them one at a time?
(I think the Firefox version has a way to import a list of user agent strings.)

So, there is no need to install the RxServiceApp and RxBrowser in the chosen mobile device emulator?

Thanks.
Gilbert

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Thu Dec 10, 2015 4:27 pm

I don't actually test our web product any more. Our team has moved to Selenium for web testing due to limitations with Ranorex on Max OSX. The Ranorex team is working on a solution for this, but the time frame for this being released is unknown.

Having said that, yes you would use that Chrome screen as the main screen. And it is a WEB technology.

The only thing this gives you though is the ability to format the screen and to see what the server sends to the given device. You CAN'T use this to replace actual testing on the devices in question though.
Shortcuts usually aren't...

shreyas.bharadwaj
Posts: 2
Joined: Fri May 26, 2017 7:40 am

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

Post by shreyas.bharadwaj » Mon Feb 26, 2018 12:40 pm

Hi
I have a similar requirement to test a web application on the ipad. posting this to find out if there is such a new feature developed in the recent versions of ranorex.

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

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

Post by odklizec » Mon Feb 26, 2018 12:55 pm

Hi,

Testing web pages in native iOS/Android web browsers is now possible with Appium integration, described here:
https://www.ranorex.com/help/latest/end ... r-endpoint
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