How to cover by tests cases which requires network disabled?

随
订阅者
297
文章
0
粉丝
测试交流评论131字数 115阅读0分23秒阅读模式
摘要I have to turnoff network for test case (it is androidTest). The issue is since Android 10...

我必须关闭测试用例的网络(这是androidTest)。

问题是,自安卓10(2020)以来,似乎没有办法通过编程实现。参考说明文章源自玩技e族-https://www.playezu.com/179334.html

应该可以从控制台设置一个禁用网络的android模拟器,该控制台应该可以从CI工作,但我很感兴趣的是,还有其他解决方案吗。文章源自玩技e族-https://www.playezu.com/179334.html

问题是如何禁用/启用WiFi&Android Emulator的蜂窝网络,来自minSdk=30的Android测试?文章源自玩技e族-https://www.playezu.com/179334.html 文章源自玩技e族-https://www.playezu.com/179334.html

 
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证