Skip to main content

ReceiveIncomingSMS

Description

Use this command to simulate a received SMS. 

Parameters

NameValueDescription
FromNumberStringPhone number that the message appears to arrive from (5+ characters).
HangupInSecondsIntegerHow many seconds to wait while the phone is ringing before hanging up on the caller side.
info

To use telephony features (receiving calls and SMS), the Cloud Administrator must have configured and activated a telephony account. This is done in the Settings → Device Policies → Telephony.

Usage

info

Replace <server> with the appropriate URL.

Example

ReceiveIncomingSMS

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

...
...

// Simulate receiving an SMS
seetest.receiveIncomingSMS("123456", 10);