阅读背景:

使用Espresso on Emulator测试Android工作室中的Internet连接错误处理

来源:互联网 

I am writing Instrumentation tests for my app on Android Studios testing on an emulator with Espresso. I need to disable the internet from within the test to make sure my error handling functionality works when the user does not have internet available. I've searched all over for an easy way to programmatically disable the internet from an emulated device. Here is the closest I've come, which does not work.I am writing Instrumentation tests for my app o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: