简体   繁体   中英

Android How to Fail an espresso test

Is there an elegant way to fail an espresso test. For example, the network isn't present dialog appears, how do I stop tests in such a case and fail.

尝试在隔离环境中运行UI测试(没有网络数据),或使用Mockito模拟服务器。

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