Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!

4. Connect to a Device and Open a Testing Session

Applies to TestComplete 15.10, last modified on December 07, 2021

Before the recording starts, select a device, on which you want to record a test, and open a testing session for the Orders application:

  1. TestComplete shows the Select BitBar Device dialog. It lists all mobile devices that BitBar provides:

    Getting Started with TestComplete: Selecting an iOS device

    Click the image to enlarge it.

  2. Select any of the available iOS devices. You can check if a device is available in the Status column.

    There are few devices available for trial users. We will use iPhone 7 in this tutorial.

    To find a suitable device faster, you can filter out the list of devices by their platform, version, or name.

  3. To open a testing session for the Orders application, it must be uploaded to the target device. If you have specified a valid .ipa file on the previous step, TestComplete will upload the file automatically.

  4. For the tested application to start on the selected device automatically when the recording begins, specify the bundle ID of the application. It is the bundle ID that was used to compile the specified .ipa file.

    Switch to the Custom Parameters tab and add the bundleId capability to the list of desired capabilities:

    Getting Started with TestComplete: Specifying the bundle ID of the tested application

    Click the image to enlarge it.

    If you skip this step, you will have to launch the application manually.

  5. By default, mobile devices running in the BitBar cloud are configured to automatically close all notifications, messages, and alerts. In this tutorial, we are going to record the user interactions with the alert that the Orders application shows, therefore, we need to configure the device not to handle alerts.

    If you use TestComplete version 15.10, it will configure the device automatically. You can skip this step.

    If you use a TestComplete version prior to version 15.10, on the Custom Parameters tab, add the autoAcceptAlerts or autoDismissAlerts capability set to false to the list of desired capabilities.

    Example

  6. Click OK to proceed.

TestComplete will connect to the selected device, install the Orders application to it and open a testing session for the application. The Mobile Screen window of TestComplete will show the screen of the connected device. To record user actions over a tested application, interact with the application in that window.

Prev     Next

See Also

Testing iOS Applications - Tutorial
About Mobile Tests
Connecting to Mobile Devices and Opening Testing Sessions

Highlight search results