Open topic with navigation

LockDeviceByInfo Method
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.

C# Syntax

    public static IDevice LockDeviceByInfo(
       IDeviceInfo deviceInfo
    )

Parameters

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

Return Value

The locked device.