ReceiveIncomingCall
Description
Use this command to simulate receiving an incoming phone call.
Parameters
Name | Value | Description |
---|---|---|
FromNumber | String | Phone number that the message will appear to arrive from (5+ characters). |
HangupInSeconds | Integer | Seconds 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.
- 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
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);