This pull requests adds 2 new properties to UI Automator goal :
A typical configuration is to run ui automator tests and, afterwards to get the screenshots pulled back to the build folder.
Screenshots are taken using the utility screencap that is available on devices with SDK 16+ (the same as ui automator). It's a super fast utility to take screenshots and this works pretty well.
Pull requests also contains documentation update and tests.
Generally speaking, devs can take additional screenshots during tests as usual using either celebrity (that is built-in maven android plugin) or the new screenshot API of UiDevice offered by UiAutomatorTestCase.
@Manfred, would you like me to update the sample for ui automator tests ?
Could you deploy the plugin (again), all my tests of ui automator mysteriously fail on travis and I would like to get more information about failures using this screenshot feature.
Add screenshot when UI Automator fails.
Add takeScreenshotOnFailure using celibrity lib and tests.
Better testing and parsing of take screen shot on failure param.
Add screenshotsPathOnDevice property. More tests for ui automator.