Share this page
Lab
new Lab()
The Digital Lab (UFT Mobile) lab, where you manage users, applications, and devices.
Methods
Returns the Digital Lab (UFT Mobile) connection configuration.
Returns:
a promise that is fulfilled with the Digital Lab (UFT Mobile) connection configuration.
-
Type
- Promise.<Mobile.MobileCenterConfiguration>
getDeviceList() → {Promise.<Array.<Mobile.DeviceInfo>>}
Returns an array of device information describing all the devices in the Digital Lab (UFT Mobile) lab.
The device information can be passed to the lockDeviceByInfo function in order to lock the appropriate device.
Returns:
a promise that is fulfilled with an array of device information describing all the devices in the Digital Lab (UFT Mobile) lab.
-
Type
- Promise.<Array.<Mobile.DeviceInfo>>
getDevicesWithOpenViewers() → {Promise.<Mobile.DeviceTO>}
Returns a list of all devices with an open viewer.
Returns:
a promise that is fulfilled with the list of all devices with an open viewer.
-
Type
- Promise.<Mobile.DeviceTO>
lockDevice(description, appsToInstallopt, deviceSourceopt) → {Promise.<Mobile.DeviceTO>}
Obtains a device from the Digital Lab (UFT Mobile) lab and locks it, so that only UFT Developer can perform actions on it.
Parameters:
Returns:
a promise that is fulfilled with the locked device.
-
Type
- Promise.<Mobile.DeviceTO>
lockDeviceById(deviceID) → {Promise.<Mobile.DeviceTO>}
Obtains a device from the Digital Lab (UFT Mobile) lab by deviceID and locks it, so that only UFT Developer can perform actions on it.
Parameters:
Name | Type | Description |
---|
deviceID | string | The device ID used by Digital Lab (UFT Mobile). |
Returns:
a promise that is fulfilled with the locked device.
-
Type
- Promise.<Mobile.DeviceTO>
lockDeviceByInfo(deviceInfo) → {Promise.<Mobile.DeviceTO>}
Obtains a device from the Digital Lab (UFT Mobile) lab by device information and locks it, so that only UFT Developer can perform actions on it.
Note: The device information is the structure returned by the getDeviceList function.
Parameters:
Name | Type | Description |
---|
deviceInfo | Mobile.DeviceInfo | The device information of the device to lock. |
Returns:
a promise that is fulfilled with the locked device.
-
Type
- Promise.<Mobile.DeviceTO>
lockDeviceByName(deviceName) → {Promise.<Mobile.DeviceTO>}
Obtains a device from the Digital Lab (UFT Mobile) lab by device name and locks it, so that only UFT Developer can perform actions on it.
Parameters:
Name | Type | Description |
---|
deviceName | string | The logical name that Digital Lab (UFT Mobile) uses to identify the device. |
Returns:
a promise that is fulfilled with the locked device.
-
Type
- Promise.<Mobile.DeviceTO>
lockDeviceWithOptions(description, sessionOptions) → {Promise.<Mobile.DeviceTO>}
Obtains a device from the Digital Lab (UFT Mobile) lab and locks it, so that only the current UFT Developer test can perform actions on it.
Parameters:
Name | Type | Description |
---|
description | Mobile.Device | The description of the device. |
sessionOptions | Object | the session options to use.
PropertiesName | Type | Attributes | Default | Description |
---|
appsToInstall | Array.<Mobile.Application> |
<optional>
| | An Application array of applications to install on the device. | deviceSource | Mobile.DeviceSource |
<optional>
| | The source location of the device. You can use the DeviceSource object or just pass one of its values as a string. | collectLogs | bool |
<optional>
|
true
| indicates whether logs should be collected in this session. | collectVitals | Object |
<optional>
| | Defines which device vitals should be collected in this session.
PropertiesName | Type | Attributes | Default | Description |
---|
cpu | bool |
<optional>
|
false
| indicates whether to collect the device CPU usage. | memory | bool |
<optional>
|
false
| indicates whether to collect the device memory usage. | freeMemory | bool |
<optional>
|
false
| indicates whether to collect the device free memory. |
|
|
Returns:
a promise that is fulfilled with the locked device.
-
Type
- Promise.<Mobile.DeviceTO>
Tips to improve your search results...
UFT Developer JavaScript SDK ReferenceVersion: 2021-24.2UFT Developer SDK ReferenceAllView Local Help CenterView Online Help CenterVersion: