Disconnect Method

Applies to TestComplete 15.68, last modified on October 16, 2024

Description

Disconnects the test engine from a testing session opened in a mobile device cloud.

Declaration

DeviceObj.Disconnect()

DeviceObj An expression, variable or parameter that specifies a reference to a Device object
Result None

Applies To

The method is applied to the following object:

Result Value

None.

Example

The example below shows how to disconnect from a testing session opened on a mobile device.

JavaScript

function Disconnect()
{
  Mobile.Device("My_Mobile_Device").Disconnect();
}

Python

def Disconnect():
  Mobile.Device("My_Mobile_Device").Disconnect()

VBScript

Sub Disconnect()
  Call Mobile.Device("My_Mobile_Device").Disconnect
End Sub

DelphiScript

procedure Disconnect();
begin
  Mobile.Device('My_Mobile_Device').Disconnect;
end;

C#Script

function Disconnect()
{
  Mobile["Device"]("My_Mobile_Device")["Disconnect"]();
}

See Also

About Mobile Tests
Device Object

Highlight search results