Device debug logs in Perfecto reports

By default, the logcat/device logs are not visible in the execution reports in Perfecto Smart Reporting and need to be enabled explicitly.

To see the device logs, after the driver initialization, add the following line to your script:

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

If you use session sharing, you'll need to stop the log collection prior to driver.quit();. See also Share a session with an IDE script (or, for the old UI, Legacy | Session sharing: session ID (Flash UI).

Copy
When using SharedSession use
driver.executeScript("mobile:logs:stop");
Copy
Quantum framework example:
Map<String, Object> pars = new HashMap<>();
String reStr = (String) DriverUtils.getAppiumDriver().executeScript("mobile:logs:start", pars);

If you use the Quantum Framework, see https://github.com/Project-Quantum/.

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