Call Method

Applies to TestComplete 14.61, last modified on April 22, 2021

Description

Simulates an outgoing call to the specified phone number.

Declaration

AndroidDeviceObj.Call(PhoneNumber)

AndroidDeviceObj An expression, variable or parameter that specifies a reference to an AndroidDevice object
PhoneNumber [in]    Required    String    
Result None

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

PhoneNumber

Specifies a phone number to call.

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.

  • Simulating a call on an Android 4.3 or later emulator causes the emulator to disconnect from Android Debug Bridge. After the disconnection, Testcomplete can no longer work with the emulator. For more information, see Possible Issues.

Example

The following code demonstrates how you can perform an outcoming call to the specified number:

JavaScript, JScript

Mobile.Device("MyDevice").Call("е3222322");

Python

Mobile.Device("MyDevice").Call("е3222322")

VBScript

Call Mobile.Device("MyDevice").Call("3222322")

DelphiScript

Mobile.Device('MyDevice').Call('3222322');

C++Script, C#Script

Mobile["Device"]("MyDevice").Call("3222322");

See Also

Testing Android Applications
SMS Method
AndroidDevice Object

Highlight search results