UFT Pro (LeanFT) .NET SDK Reference, Version 14.03
LockDeviceByInfo Method
An interface (IDeviceInfo) containing information about the device to lock.
Obtains a device from the Mobile Center lab by device information and locks it, so that only the current LeanFT test can perform actions on it.
Remarks
If the lock operation fails, the LockDeviceByInfo method throws an exception.
Syntax
public static IDevice LockDeviceByInfo( 
   IDeviceInfo deviceInfo
)

Parameters

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

Return Value

The locked device.