1. Prepare an iOS Device

Applies to TestComplete 12.60, last modified on September 17, 2018

Before you can test an iOS application with TestComplete, you need to:

Adding Test Devices to the Application's Provisioning Profile

If you have the iOS Developer Program, you need to add the test device to the provisioning profile of the tested iOS application to install the application on this device. You can register test devices on Apple Member Center web site:

  • Get the device identifier (UDID). For this purpose, launch iTunes, select your iOS device and, on the Summary tab, click Serial Number. The serial number will be replaced with the UDID.

  • Open the Devices section of the Member Center:

    http://developer.apple.com/ios/manage/devices/index.action

  • Click the button in the upper-right corner.

  • Select the Register Device radio button.

  • Enter the device name and UDID.

  • Click Continue, and then Register.

You have registered your device for testing. Now you need to add it to the application provisioning profile.

  • Select Provisioning Profiles from the menu on the left.

  • Select the profile to which you want to add the device and click Edit.

  • In the Devices list, select all the devices where you want to test the application.

    Member Center: Edit iOS Provisioning Profile

    Click the image to enlarge it.

  • Click Generate to save the changes.

Connecting Device to TestComplete

Connect your iOS device to the TestComplete computer via a USB cable.

If the device shows a dialog asking whether you trust this computer, tap Trust.

Also, we recommend that you change the following settings of the device:

  • Go to Settings > General.

  • Tap Auto-Lock.

  • Select Never.

  • Go to Settings > DISPLAY & Brightness.

  • Move the brightness slider to the minimum value.

This will prevent the device from locking the screen during the test run and reduce battery consumption of the connected device.

To make sure TestComplete “sees” the connected device, switch to the Object Browser. You should see the Device("your_device_name") object under the Mobile object.

iOS device object in the Object Browser

On the next step, we will prepare the sample Orders application for testing.

Prev     Next

See Also

Testing iOS Applications
Registering iOS Devices for Testing

Highlight search results