Is there a way to use appium studio to return application logs and store them to a file for further processing ? This is question for iOS and Android.
thanks walter
Is there a way to use appium studio to return application logs and store them to a file for further processing ? This is question for iOS and Android.
thanks walter
Hi Walter
Sorry for the delayed reponse
We have a couple of methods that can help you
driver.executeScript("client:client.getDeviceLog()"); //gets the latest device logs
driver.executeScript("client:client.clearDeviceLog()"); //clear the log from the device
These will return the logs gathered from the device.
I’m not sure if this is exactly what you are looking for, if you want to get application specific logs, you’ll probably need to filter the output from there commands
If you are looking to get the crash logs for an application, we’ll add the command in our next release (11.4) that will allow you to capture them and place them in an archived (zip) file which is attached to the report
Regards,
Tom