Share this page

LockDevice Method (MobileLab)
Obtains a device from the UFT Mobile lab and locks it, so that only the current UFT Developer test can perform actions on it.
Overload List

Overload | Description
--- | ---
LockDevice(DeviceDescription) | Obtains a device from the UFT Mobile lab and locks it, so that only the current UFT Developer test can perform actions on it.
LockDevice(DeviceDescription,ApplicationDescription[]) | Obtains a device from the UFT Mobile lab and locks it, so that only the current UFT Developer test can perform actions on it.
LockDevice(DeviceDescription,ApplicationDescription[],DeviceSource) | Obtains a device from the UFT Mobile lab and locks it, so that only the current UFT Developer test can perform actions on it.
LockDevice(DeviceDescription,DeviceSessionOptions) | Obtains a device from the UFT Mobile lab and locks it, so that only the current UFT Developer test can perform actions on it.

Example

    // Lock a device by name.
    var device = MobileLab.LockDeviceByName("MyDevice");

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: