Vitals stop (FR)
Perfecto Command
mobile:monitor:stop
Purpose
Ends the collection of device vitals. The collected information is saved as a CSV file in the repository. Once script execution is complete, the CSV file is available for download from the Single Test Report.
If the script contains several start/stop pairs for the same device, there will be a single CSV file for the device, provided the device remains open. Numerous open/close device actions in the scrip will result in several CSV files. In other words, a CSV file is generated per device closure.
If the data collection frequency interval, defined by the Vitals start function, is shorter than the script runtime, no CSV file is created.
Parameters
None
Return Value
None
Exceptions
None
Examples
Java sample
Map<String, Object> params = new HashMap<>();
driver.executeScript("mobile:monitor:stop", params);
C# sample
Dictionary<String, Object> pars = new Dictionary<String, Object>();
driver.ExecuteScript("mobile:monitor:stop", pars);