简体   繁体   中英

When running Robotium test, how can I close the low battery dialog?

Problem and scenario:

I am running battery rundown test for my Android device. It test the device while looping flash pages in the Browser.apk. To automate the testing I used Robotium. However when the battery goes to 15%, the low battery dialog appears so the Robotium test stops. Do you have any idea to fix my problem? I appreciate any hints. Thanks!

Either try to keep the charger connected. Or do not use robotium, I would suggest use UIAutomator. It is more less like robotium, but unlike robotium it can navigate outside its package and handle activites.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM