Skip to main content

ReceiveIncomingCall

Description

Use this command to simulate receiving an incoming phone call. 

Parameters

NameValueDescription
FromNumberStringPhone number that the message will appear to arrive from (5+ characters).
HangupInSecondsIntegerSeconds to wait while the phone is ringing before hanging up on the caller side.
info

Notes: To use telephony features (receiving calls and SMS), the Cloud Administrator must configure and activate a telephony account. This is done in Settings → Device Policies -> Telephony.

Usage

info

Replace <server> with the appropriate URL.

Example

ReceiveIncomingCall

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...

// Simulate receiving an incoming call
seetest.receiveIncomingCall("123456", 10);