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:
-
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.
-
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.
On the next step, we will prepare the sample Orders application for testing.