Page 1 of 1

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

Posted: Tue Feb 18, 2014 9:53 am
by kroon
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?

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

Posted: Tue Feb 18, 2014 4:03 pm
by Support Team
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)

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

Posted: Tue Feb 18, 2014 4:06 pm
by krstcs
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.

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

Posted: Wed Dec 09, 2015 6:19 pm
by gilbar16
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

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

Posted: Thu Dec 10, 2015 4:27 pm
by krstcs
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.

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

Posted: Mon Feb 26, 2018 12:40 pm
by shreyas.bharadwaj
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.

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

Posted: Mon Feb 26, 2018 12:55 pm
by odklizec
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