Silk Mobile

Table of Contents (Homepage)

ReleaseDevice

Release(DeviceName, ReleaseAgent, RemoveFromDeviceList, ReleaseFromCloud)

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

images/images/os-icons/os_blackberry_150x150.png

Description

This command gives the user several options on how to automate several common scenarios when finished testing on a specific device. The option to release the execution port is closely related to the Executor Add-On feature.

Note: For more about the executor add-on - Click here.

Parameters

  • DeviceName: The name of the device you wish to release.

  • Special cases:

    • "" = The active device will be released

    • "*" = all devices that were locked by the user will be released (in case of serial execution)

  • ReleaseAgent: Deprecated Boolean parameter. If set to true or false will release the execution agent the device was using.

  • RemoveFromDeviceList: Boolean parameter. If set to true, will remove the device from the connected devices menu.

  • ReleaseFromCloud: Boolean parameter. If set to true, will release the device from the current user in the Cloud.

Usage

We will use this command to release the tested device.

Parameters:

  • DeviceName: “adb:Galaxy Tab”

  • ReleaseAgent: True

  • RemoveFromDeviceList: True

  • ReleaseFromCloud: True

images/download/attachments/3310152/13.jpg

Result:

Device will be released from the cloud. Also it will be removed from the device list as well. The agent which was being used will also freed.

images/download/attachments/3310152/14.jpg

Code Examples

Java Example
client.releaseDevice("adb:Galaxy Tab", true, true, true);
C# Example
client.ReleaseDevice("adb:Galaxy Tab", true, true, true);
VBScript Example
client.ReleaseDevice "adb:Galaxy Tab", true, true, true
Report
Python Example
self.client.releaseDevice("adb:Galaxy Tab", True, True, True)
Perl Example
$client->releaseDevice("adb:Galaxy Tab", 1, 1, 1);