skyisle / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
1 stars 0 forks source link

Feature request: Screenshot functionality #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great to have a reliably way to take screenshots during a test. 

Something like Espresso.screenshot() that returns a Bitmap. 

On API 18+ it could use uiautomation.takeScreenshot(), on older API levels it 
could fallback to drawing the views on a canvas ( like spoon or robotium do ). 

The screenshots should contain any dialogs that are showing and wait for the 
screen to idle first. 

Original issue reported on code.google.com by YogurtE...@gmail.com on 24 Jun 2014 at 12:54

GoogleCodeExporter commented 9 years ago
We have a solution for this in our "buddy.apk" that we mentioned in our GTAC 
2014 talk: 
https://code.google.com/p/android-test-kit/wiki/EspressoCommonProblems?ts=141643
3801&updated=EspressoCommonProblems 

We'll be releasing this in the future.

Original comment by vale...@google.com on 19 Nov 2014 at 9:53