Class MobileLab
The OpenText Functional Testing Lab, where users, applications, and devices are managed.
public static class MobileLab
- Inheritance
-
MobileLab
- Inherited Members
Properties
MobileCenterAddress
Returns the URI of the OpenText Functional Testing Lab as defined in the LFTRuntime configuration, or null if it is not defined.
public static Uri MobileCenterAddress { get; }
Property Value
MobileCenterUserName
Returns the user name of the OpenText Functional Testing Lab as defined in the LFTRuntime configuration, or null if it is not defined.
public static string MobileCenterUserName { get; }
Property Value
Methods
GetDeviceList()
Returns information (a list of IDeviceInfo interfaces) about all the devices in OpenText Functional Testing Lab
public static IDeviceInfo[] GetDeviceList()
Returns
- IDeviceInfo[]
Information (a list of IDeviceInfo interfaces) about all the devices in OpenText Functional Testing Lab
LockDevice(DeviceDescription)
Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.
public static IDevice LockDevice(DeviceDescription description)
Parameters
descriptionDeviceDescriptionThe DeviceDescription defined in OpenText Functional Testing Lab
Returns
LockDevice(DeviceDescription, ApplicationDescription[])
Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.
public static IDevice LockDevice(DeviceDescription description, ApplicationDescription[] appsToInstall)
Parameters
descriptionDeviceDescriptionThe DeviceDescription defined in OpenText Functional Testing Lab
appsToInstallApplicationDescription[]An ApplicationDescription array representing additional applications to install.
Returns
LockDevice(DeviceDescription, ApplicationDescription[], DeviceSource)
Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.
public static IDevice LockDevice(DeviceDescription description, ApplicationDescription[] appsToInstall, DeviceSource deviceSource)
Parameters
descriptionDeviceDescriptionThe DeviceDescription defined in OpenText Functional Testing Lab
appsToInstallApplicationDescription[]An ApplicationDescription array representing additional applications to install.
deviceSourceDeviceSourceA DeviceSource representing the source of the device to use.
Returns
LockDevice(DeviceDescription, DeviceSessionOptions)
Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.
public static IDevice LockDevice(DeviceDescription description, DeviceSessionOptions deviceSessionOptions)
Parameters
descriptionDeviceDescriptionThe DeviceDescription defined in OpenText Functional Testing Lab
deviceSessionOptionsDeviceSessionOptionsA DeviceSessionOptions object supplying session options.
Returns
LockDeviceById(string)
Obtains a device from the OpenText Functional Testing Lab by deviceID and locks it, so that only the current test can perform actions on it.
public static IDevice LockDeviceById(string deviceId)
Parameters
deviceIdstringThe device ID used by OpenText Functional Testing Lab
Returns
LockDeviceByInfo(IDeviceInfo)
Obtains a device from the OpenText Functional Testing Lab by device information and locks it, so that only the current test can perform actions on it.
public static IDevice LockDeviceByInfo(IDeviceInfo deviceInfo)
Parameters
deviceInfoIDeviceInfoAn interface (IDeviceInfo) containing information about the device to lock.
Returns
- IDevice
The locked device.
Remarks
If the lock operation fails, the LockDeviceByInfo method throws an exception.
LockDeviceByName(string)
Obtains a device from the OpenText Functional Testing Lab by device name and locks it, so that only the current test can perform actions on it.
public static IDevice LockDeviceByName(string deviceName)
Parameters
deviceNamestringThe name that OpenText Functional Testing Lab uses to identify the device.
Returns
TryLockDeviceByInfo(IDeviceInfo, out IDevice)
Checks whether a device is available in the OpenText Functional Testing Lab and, if so, locks it so that only the current test can perform actions on it.
public static bool TryLockDeviceByInfo(IDeviceInfo deviceInfo, out IDevice device)
Parameters
deviceInfoIDeviceInfoAn interface (IDeviceInfo) containing information about the device to lock.
deviceIDeviceIf the method returns True, this parameter contains the locked IDevice. If the method returns False, the parameter contains a null value.
Returns
- bool
True if the locking operation succeeded, otherwise false.
Remarks
If this method fails, the test continues without an exception.