Skip to main content

SetMonitorPollingInterval

Description

Use this command to set the polling interval for monitor counter values. By default this is 1000 ms.

The minimum monitoring polling interval is 500 ms for Android devices and 1000-2000 ms for iOS devices (depending on the device).

Parameter

NameValue
TimeTime intervals in milliseconds (ms).

Example

info

Replace <server> with the appropriate URL.

SetMonitorPollingInterval

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

...
...

// Start Monitor and erases and previous monitor data and store current monitor in a given file.
seetest.startMonitor("com.experitest.ExperiBank");
// Polling interval
seetest.setMonitorPollingInterval(1000);
seetest.sleep(5000);
seetest.getMonitorsData("C:\\experitest\\monitor.csv");