我需要在android仿真器中禁用网络以测试错误消息,有什么办法可以使用robotium来做到这一点?
You can use ExtSolo library http://docs.testdroid.com/_static/extSolodocs/com/bitbar/recorder/extensions/ExtSolo.html it is an extension of Solo library. (You can download from http://docs.testdroid.com/_pages/extsolo.html )
Have a look at the keyword turnWifi(boolean enabled), it is what you are looking for.
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.