This quick starting guide shows you how to properly use the new iOS RxServiceApp to create automated tests and how to prepare your iOS project so that start/stop app functionality can be used.
Prepare Your iOS Project to Enable Start/Stop Functionality
The following step-by-step instructions are based on Xcode 6.
If the app will be instrumented manually, please do the following steps to register the custom URL scheme so that the starting and stopping will work correctly:
- Open your Project in Xcode.
- Select your project project navigation directory
- Select the Info tab from the Options section.
- In the above screenshot, expand the last option URL Types. You will see (+) icon, click it to add URL Types.
-
You need to add an identifier and URL Scheme. The identifier is the application bundle identifier and the URL Scheme you need to add is identifier but add ranorex before the identifier. For example application identifier is com.demoapp then the URL Scheme will be ranorex.com.demoapp
After Instrumenting and deploying the app for the first time, start the app manually once.
The newly instrumented and deployed app needs to be started manually for the first time so that it gets registered at the RxServiceApp.
If the app is instrumented with Ranorex Studio on the Windows machine, the correct URL scheme will be set automatically.
Due to restrictions in Apple API, it may occur that the instrumented IPA is not able to run from Ranorex Studio, while RxServices application is in the background mode. It is recommended to perform any test while the instrumented IPA is in the foreground.
Proper use of the iOS Service App
To use the new start/stop functionality via USB or WiFi, make sure that the RxServiceApp is running and is active on the device. You can either use the instrumentation wizard to deploy the service app as described in ⇢ Instrumentation Wizard – iOS, or download and install the service app on your device from our mobile download archive by scanning the following QR Code or using the following short URL:
Use the QR Code above or the URL https://bitly.com/mArchive to directly access the download archive on your mobile device.
You can still create automated tests without the iOS RxServiceApp. Please note that without the RxServiceApp the start/stop functionality won’t work.
To add a device without the service app, make sure that an instrumented app is running and active on the device.