[英]Test instrumentation process crashed while running espresso tests
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. 我有一个简单的意式浓缩咖啡测试,它需要打开我的应用程序开关选项卡,然后单击RecyclerView的行,这将打开一个WebView。 The WebView opens properly, with the whole content, but then it throws this error.
WebView会正确打开,包含所有内容,但是会引发此错误。
Logcat: logcat的:
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)
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:[ERROR:filesystem_posix.cc(62)] mkdir / data / user / 0 / com.myProject.ui / cache / WebView / Crashpad:没有这样的文件或目录(2)
Any idea why this happens? 知道为什么会这样吗?
In my scenario it occurs only First time lunch the WebView. 在我的场景中,它仅发生在WebView的第一次午餐中。
This error is because of Android 9 and chrome 76.0.3809.89. 此错误是由于Android 9和Chrome 76.0.3809.89引起的。 Lower version of Android Is working fine I have tested in Android 5.1.1
较低版本的Android运行正常,我已经在Android 5.1.1中进行了测试
In android WebView uses the chrome as browser. 在Android中,WebView使用chrome作为浏览器。
Hope next version of chrome will fix this error. 希望下一个版本的chrome将解决此错误。
Thanks for suggestions, in order for my test to run successfully, i had to close the webView before finishing the tests. 感谢您的建议,为了使测试成功运行,我必须在完成测试之前关闭webView。 So i get no longer this error, neither "test instrumentation process crashed".
因此,我不再遇到此错误,也没有“测试检测过程崩溃”。 I hope this answer might help others.
我希望这个答案可以帮助其他人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.