The Device Loop operation is used to perform testing of mobile application on several connected mobile devices. It selects the mobile devices one after another and executes all child operations on each device.
This operation is available only if you have a license for the TestComplete Mobile module.
The operation does not return any value.
The operation can have any other operation as a child (or children).
For information on how to make an operation a child of another operation, see the description of the Keyword Test editor’s Test Steps page.
When you add the operation to your keyword test, TestComplete displays a wizard that contains the following pages:
On this page, you specify which devices will be involved:
This page is shown if you selected Iterate Through Specific Devices on the “Select Loop Mode” page of the wizard. On this page, you define a list of devices to be used by the operation:
To add a device to the list, click Add. In the ensuing Add Device Loop Item wizard, you can select the name of the desired device.
To replace a previously added device with another one, or to modify device parameters, click Change and choose a new device.
To remove one of the previously added devices, press Remove.
To remove all the previously added devices, press Clear.
Once all the desired devices are defined for the operation, press Finish.
After adding the operation to the test, you can modify the operation’s parameters via the same wizard you used to add the operation. To invoke the wizard, simply double-click the operation’s row in the Keyword Test editor.
If the Device Loop operation is executed successfully, it makes the device, which was selected during iteration, the current device for the test. The
Aliases.Device object will provide an interface to this device.
If any of the specified devices disconnects from the computer, the operation will fail.
Select Device Operation
Testing Mobile Applications
Preparing for Testing Android Applications
Preparing Applications, Devices, and Test Computers for iOS Testing
Running Tests on Multiple Devices
Testing Android Applications