1. Prepare an iOS Device

Applies to TestComplete 14.40, last modified on April 22, 2021

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

Add Your Test Device 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.

1. Get your device identifier (UDID)
  1. Connect your device to your PC (where iTunes is installed) or to your Mac via a USB cable.

  2. Launch iTunes.

  3. Click and select your device:

    Select your iOS device
  4. On the Summary tab, click Serial Number. It will be switched to UDID:

    iOS device UDID
2. Register your device for testing
  1. Open your web browser, navigate to the Apple Developer web site and use your Apple account to log in:

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

  2. On the Member Center page, click Certificates, Identifiers & Profiles, and then click Devices > All.

  3. Click the button in the upper-right corner.

  4. Click Register Device.

  5. Enter the device name and UDID.

  6. Click Continue, and then Register.

You have registered your device for testing.

3. Add your device to the application provisioning profile
  1. Select Provisioning Profiles from the menu on the left.

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

  3. 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.

  4. Click Generate to save the changes.

Connect Your 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.

In addition, we recommend that you configure your device as follows:

  1. On your iOS device, go to Settings > General.

  2. Tap Auto-Lock.

  3. Select Never.

  4. Go to Settings > DISPLAY & Brightness.

  5. 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