Table of Contents

Class MobileLab

Namespace
HP.LFT.SDK.Mobile
Assembly
HP.LFT.SDK.dll

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

Uri

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

string

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

description DeviceDescription

The DeviceDescription defined in OpenText Functional Testing Lab

Returns

IDevice

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

description DeviceDescription

The DeviceDescription defined in OpenText Functional Testing Lab

appsToInstall ApplicationDescription[]

An ApplicationDescription array representing additional applications to install.

Returns

IDevice

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

description DeviceDescription

The DeviceDescription defined in OpenText Functional Testing Lab

appsToInstall ApplicationDescription[]

An ApplicationDescription array representing additional applications to install.

deviceSource DeviceSource

A DeviceSource representing the source of the device to use.

Returns

IDevice

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

description DeviceDescription

The DeviceDescription defined in OpenText Functional Testing Lab

deviceSessionOptions DeviceSessionOptions

A DeviceSessionOptions object supplying session options.

Returns

IDevice

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

deviceId string

The device ID used by OpenText Functional Testing Lab

Returns

IDevice

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

deviceInfo IDeviceInfo

An 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

deviceName string

The name that OpenText Functional Testing Lab uses to identify the device.

Returns

IDevice

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

deviceInfo IDeviceInfo

An interface (IDeviceInfo) containing information about the device to lock.

device IDevice

If 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.