Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Oct 04, 2019 16:49

By default the logcat / device logs are not visible in the execution reports / DigitalZoom reports and they need to be enabled explicitly.


To see the devices logs, add this line to your script after the driver initialization:


Java / Appium / Selenium example:
 driver.executeScript("mobile:logs:start"); 


If you're using Session Sharing you'll need to stop the log collection prior to driver.quit();  > Session sharing: session ID (new UI)

Because the session would not be closed. 

When using SharedSession use
driver.executeScript("mobile:logs:stop");



Quantum framework example:
Map<String, Object> pars = new HashMap<>();
String reStr = (String) DriverUtils.getAppiumDriver().executeScript("mobile:logs:start", pars);

Quantum Framework only: https://github.com/Project-Quantum/


C# Example:
var pars = new Dictionary<string, object>();
driver.ExecuteScript("mobile:logs:start", pars);
JS Protractor example:
var params = {
    }
    browser.executeScript('mobile:logs:start');