运行浓缩咖啡测试时,测试仪器过程崩溃 [英] Test instrumentation process crashed while running espresso tests

查看:474
本文介绍了运行浓缩咖啡测试时,测试仪器过程崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的意式浓缩咖啡测试,它需要打开我的应用程序切换选项卡,然后单击RecyclerView的行,这将打开一个WebView. WebView会正确打开,包含所有内容,但是会引发此错误.

I have a simple espresso test, which requires to open my app switch tabs and click on a RecyclerView's row, which opens a WebView. The WebView opens properly, with the whole content, but then it throws this error.

Logcat:

2019-08-07 15:35:50.409 18902-18902/com.myProject.ui E/chromium:[错误:filesystem_posix.cc(89)] stat/data/user/0/com.myProject.ui/cache/WebView/Crashpad:没有此类文件或目录(2) 2019-08-07 15:35:50.409 18902-18902/com.myProject.ui E/chromium:[错误:filesystem_posix.cc(62)] mkdir/data/user/0/com.myProject.ui/cache/WebView/Crashpad:没有这样的文件或目录(2)

2019-08-07 15:35:50.409 18902-18902/com.myProject.ui E/chromium: [ERROR:filesystem_posix.cc(89)] stat /data/user/0/com.myProject.ui/cache/WebView/Crashpad: No such file or directory (2) 2019-08-07 15:35:50.409 18902-18902/com.myProject.ui E/chromium: [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/com.myProject.ui/cache/WebView/Crashpad: No such file or directory (2)

知道为什么会这样吗?

推荐答案

感谢您的建议,为了使我的测试成功运行,我必须在完成测试之前关闭webView.因此,我不再遇到此错误,也没有测试检测过程崩溃".我希望这个答案可以对其他人有所帮助.

Thanks for suggestions, in order for my test to run successfully, i had to close the webView before finishing the tests. So i get no longer this error, neither "test instrumentation process crashed". I hope this answer might help others.

这篇关于运行浓缩咖啡测试时,测试仪器过程崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆