Home:ALL Converter>Uiautomator - takeScreenshot - is there a way to store the image on the machine running the tests instead of the device

Uiautomator - takeScreenshot - is there a way to store the image on the machine running the tests instead of the device

Ask Time:2015-02-03T03:47:30         Author:Tim Boland

Json Formatter

In a uiautomator test, using takeScreenshot(), is there a way to store the image on the machine running the tests instead of the device?

If it cant be done with takeScreenshot, id be interested in hearing any alternative methods anyone has come up with.

Thanks

Author:Tim Boland,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/28285548/uiautomator-takescreenshot-is-there-a-way-to-store-the-image-on-the-machine
Gabriel Porumb :

You could define a store path (screenPath) and save the screenshot on the device.\n\nThe you could use adb pull like this:\n\nadb pull screenPath localPath\n\n\nTo copy the screenshot locally.",
2015-02-03T06:39:49
yy