String addDevice(SerialNumber, DeviceName)
|
|
|
|
This command gives you the option to automate the add device process.
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)
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.
String str0 = client.addDevice("02dfe56321089ac2", "Nexus 5");string str0 = client.AddDevice("02dfe56321089ac2", "Nexus 5");str0 = client.AddDevice ( "02dfe56321089ac2", "Nexus 5" )Reportvar0 = self.client.addDevice("02dfe56321089ac2", "Nexus 5")my $str0 = $client->addDevice("02dfe56321089ac2", "Nexus 5");