RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 785 forks source link

Can't see screenshots under /sdcard/Robotium-Screenshots/ #847

Open Ben1609 opened 8 years ago

Ben1609 commented 8 years ago

I use solo. takeScreenshot() in my ui-automation test but Robotium-Screenshots folder doesn't exist. I run my test on Nexus 5 emulator with api 21. I use Robotium 5.6.1 version.

thanks

renas commented 8 years ago

Solo.takeSceenshot() Requires write permission (android.permission.WRITE_EXTERNAL_STORAGE) in AndroidManifest.xml of the application under test.

Ben1609 commented 8 years ago

Hi Renas. Thanks for the reply. I do have android.permission.WRITE_EXTERNAL_STORAGE. My problem was that my emulator sdcard directory didn't has write permission.