This section describes how to setup Apple Xcode for developing and deploying iOS applications to a real or simulated device so that they can be tested by Rapise.
Make sure you have already installed XCode and the iOS SDK onto your Apple Mac as described in the Mobile Testing parent topic.
This topic describes the process for building and deploying the sample AUTiOS application that comes with Rapise, however it can be used equally well with your in-house application.
1) Get the AUTiOS Source Code
When you install Rapise, the sample AUT for iOS (AUTiOS) is placed in the following folder on your PC:
You will need to copy this folder across onto your Mac so that you can open it in Xcode.
Once you have done that, launch Xcode on the Mac:
Open the AUTiOS project and select the root node:
Before you can actually build and deploy this project, you will need to register for an Apple ID and setup an Apple Developer account. You should check with your company to see if they have already joined the Apple iOS Developer Program, if not, you will need to join yourself and become a member. You can learn more about this at the Apple developer website: https://developer.apple.com.
2) Join Your iOS Development Team
Assuming that either you or your company already has signed up for the iOS Developer Program, you will need to ask the administrator of your account (it might be you) to send an invitation to you if you are not already a member. The link for accepting such an invitation is typically:
Click on this link and accept the invitation.
Meanwhile, back in XCode Use the �Add an Account�� to login with your Apple ID:
3) Building and Deploying on a Simulated Device
Now that you have signed into Xcode using your developer account, you can select a simulated device and run the project on it:
Once you have selected the simulated iOS device you want to use, click the Product > Build option to build the app for the targeted device. You can use the Run option to make sure that the app actually launches on this device before testing it with Rapise.
Assuming that this is successful, you will see the AUTiOS running in the iOS Simulator:
If you are only going to use Simulated devices (not recommended) then you can skip the next section and just continue with setting up Appium, as described in the main Mobile Testing topic.
4) Building and Deploying on a Physical Device
Login with your Apple ID to http://developer.apple.com
Choose Certificates, Identifiers & Profiles:
Add your device's UDID to the list of registered iOS devices in the developer account:
You can find out the UDID by connecting it to the Mac and viewing the device inside Xcode.
Then, back in Xcode choose your physical device, and use the Product > Build and Run option to test that the app launches on the device:
You can find the iOS sample tests and sample Application (called AUTiOS) in your Rapise installation at the following locations:
Sample iOS Tests:
·C:\Users\Public\Documents\Rapise\Samples\UsingMobile\AppiOS (testing a native App)
·C:\Users\Public\Documents\Rapise\Samples\UsingMobile\WebiOS (testing a web app)
Sample Application (AUTiOS)
·Mobile Testing Tutorial - for a simple introduction to mobile device testing.
·Mobile Settings Dialog - for information on setting up the different mobile profiles for the mobile devices you will be testing
·Mobile Object Spy - for information on how Rapise connects to the device and lets you view the objects in the application being tested