Last updated: Aug 08, 2017 09:42
By Allana Miller
Selects a device(s) according to device attributes, instead of a specific device ID.
When running a script, instead of checking each time whether the DUT is available, use the Select device command to broaden the range of potential device options. Choose single or multiple attributes (e.g. Model, OS Version) and the device(s) that meet those attributes will be selected.
** Click here for more information on scheduling script executions
Select Device works with or without a data table.
- For installing a new application on a group of devices or for testing on a group of devices, use a data table.
- If you only need one device that meets specific attributes, a data table is not required.
Select device without a data table:
- In the Select Device command, check the Result Variable parameter.
- Choose the specific attributes that will be used to select the device. The example below uses the OS parameter. The OS parameter is defined as a variable (platform), which is defined as Android or iOS. One device will be selected which will have either the Android or iOS operating system.
How to use Select device with a data table:
Step 1: Create a data table with only one column that is defined as the handset type. Do not add any devices. (Devices already in the data table will be ignored.)
Go to Variables and create a new variable with type = Data table. In the value field, add the data table you created.