Reboot
Description
This command allows you to reboot the device, while specifying the timeout waiting for the device to reload. You can use the reboot command to reboot the device if you are required to do so as part of the test.
Parameters
Name | Value | Description |
---|---|---|
Timeout | int | Timeout in milliseconds. The default is 40000. |
info
On some devices, an additional action is needed after reboot of unlocking the device. This can be done using DeviceAction of "Unlock".
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
Reboot Command Usage
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
...
...
// reboot and wait 2 minutes for the device to reload
// unlock the device after reboot
if(seetest.reboot(120000)){
seetest.deviceAction("Unlock")
}