Reboot Method

Applies to TestComplete 15.70, last modified on December 17, 2024
The information below concerns legacy mobile tests that work with mobile devices connected to the local computer. For new mobile tests, we recommend using the newer cloud-compatible approach.

Description

Reboots the device.

Declaration

AndroidDeviceObj.Reboot()

AndroidDeviceObj An expression, variable or parameter that specifies a reference to an AndroidDevice object
Result None

Applies To

The method is applied to the following object:

Result Value

None.

Remarks

This method is asynchronous. This means that TestComplete continues running the test, no matter whether it has finished or not. For information on how it may affect testing on Android devices, see Possible Issues.

Example

The following code example reboots the specified device:

JavaScript, JScript

Mobile.Device("MyDevice").Reboot();

Python

Mobile.Device("MyDevice").Reboot()

VBScript

Call Mobile.Device("MyDevice").Reboot

DelphiScript

Mobile.Device('MyDevice').Reboot();

C++Script, C#Script

Mobile["Device"]("MyDevice")["Reboot"]();

See Also

Testing Android Applications (Legacy)
AndroidDevice Object

Highlight search results