Running tests on iPhone and iPad devices using BrowserStack


With more and more visitors accessing your company’s website on mobile devices, it is important to make sure that all of your visitors have a positive experience, regardless of what type of device they’re using to get there. This is where mobile testing comes in place and clearly, making rock-solid automated tests that will run on mobile device endpoints like iOS and Android is of great importance.

You already know that you can execute your test using an Android device as an endpoint with Ranorex Webtestit, like described in this article. But if you need to test your application on iOS devices like iPhone or iPad, worry not, we have the right thing for you :wink:
BrowserStack is a cloud web and mobile testing platform that enables you to test websites and mobile applications across on-demand browsers, operating systems, and real mobile devices. So all you need to do is to have a BrowserStack account and integrate this service with Ranorex Webtestit using our Custom endpoint feature.

First of all, you will need your Username and Access key, which can be found on the start page after you log into your BrowserStack account.

After that click the Add endpoint button and fill out the URL field in the following format: https://yourUsername:[email protected]/wd/hub

Next step is to choose the device that you want to use to run the tests and provide the appropriate capabilities to our remote endpoint. This can be easily done using the Capabilities Calculator and copying the values into the capabilities field.

That’s it, you are ready to perform your test executions on iOS devices! Run the test and observe the results. BrowserStack provides you with the video recording of your test run and a detailed textual action logs.

Thanks to RanorexWebtestits’s inbuilt take a screenshot on failure feature, you will be able to see where did your test fail. You may also want to check out the Running automated tests on iOS devices using SauceLabs article.