ReceiveIncomingSMS
Description
Use this command to simulate a received SMS.
Parameters
Name | Value | Description |
---|---|---|
FromNumber | String | Phone number that the message appears to arrive from (5+ characters). |
HangupInSeconds | Integer | How 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.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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);