Device debug logs in Perfecto reports
By default, the logcat/device logs are not visible in the execution reports/Perfecto Smart Reporting and they need to be enabled explicitly.
To see the devices logs, add this line to your script after the driver initialization:
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).
Because the session would not be closed.
Copy
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/
Copy
C# Example:
var pars = new Dictionary<string, object>();
driver.ExecuteScript("mobile:logs:start", pars);