This page is maintained for older versions of Rapise only. The latest documentation can be found at: https://rapisedoc.inflectra.com
Mobile Testing: iOS Setup

Purpose

 

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:

 

C:\Users\Public\Documents\Rapise\Samples\UsingMobile\AUT\AUTiOS

 

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:

 

xcode_setup_1

Open the AUTiOS project and select the root node:

 

xcode_setup_3

 

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:

 

https://developer.apple.com/programs/start/jointeam/index.php?success=%2Fios%2Finvitation%2Faccept.action
 

Click on this link and accept the invitation.

 

Meanwhile, back in XCode Use the �Add an Account�� to login with your Apple ID:

 

xcode_setup_4

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:

 

xcode_setup_5

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.

 

xcode_setup_6

Assuming that this is successful, you will see the AUTiOS running in the iOS Simulator:

 

xcode_setup_7

 

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:

 

xcode_setup_8

Select Devices:

 

xcode_setup_9

Add your device's UDID to the list of registered iOS devices in the developer account:

xcode_setup_10

You can find out the UDID by connecting it to the Mac and viewing the device inside Xcode.

 

xcode_devices

 

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:

 

xcode_build_for_device

Example

 

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)

·C:\Users\Public\Documents\Rapise\Samples\UsingMobile\AUT\AUTiOS

 

See Also

 

·Mobile Testing, for an overview of mobile testing with sub-sections on testing using iOS and Android.

·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