Skip to main content

SeeTestAutomation- AddDevice

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 .

String addDevice(SerialNumber, DeviceName)

Description

This command gives you the option to automate the add device process.

Parameters

  • SerialNumber: The serial number / UDID of the device to add.
  • DeviceName: The suggested name (will add prefix if the name already exists for a different device) 

Usage

Designed command to add specific devices during runtime for testing.

Scenario: We have a device connected locally to the machine but it is not available on the device list. With this command we will add and set it for testing. 

Parameters:

  • SerialNumber: will be set to 02dfe56321089ac2
  • DeviceName: will be set as Nexus 5

**

**

Upon execution of this command, we will see the device getting added with the name we specified.

**

**

Code Examples

Java Example

String str0 = client.addDevice("02dfe56321089ac2", "Nexus 5");

C# Example Expand source

string str0 = client.AddDevice("02dfe56321089ac2", "Nexus 5");

VBScript Example Expand source

str0 = client.AddDevice ( "02dfe56321089ac2", "Nexus 5" )
Report

Python Example Expand source

var0 = self.client.addDevice("02dfe56321089ac2", "Nexus 5")

Perl Example Expand source

my $str0 = $client->addDevice("02dfe56321089ac2", "Nexus 5");