Skip to main content

SeeTest Client - ReleaseDevice

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

Release(DeviceName, ReleaseAgent, RemoveFromDeviceList, ReleaseFromCloud)

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.

info

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

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.

Code Examples

Java Example

client.releaseDevice("adb:Galaxy Tab", true, true, true);

C# Example Expand source

client.ReleaseDevice("adb:Galaxy Tab", true, true, true);

VBScript Example Expand source

client.ReleaseDevice "adb:Galaxy Tab", true, true, true
Report

Python Example Expand source

self.client.releaseDevice("adb:Galaxy Tab", True, True, True)

Perl Example Expand source

$client->releaseDevice("adb:Galaxy Tab", 1, 1, 1);