简体   繁体   English

运行意式浓缩咖啡测试时,测试仪器过程崩溃

[英]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.

相关问题 Android Espresso UI测试-测试运行失败:由于“进程崩溃”,仪表运行失败。 - Android Espresso UI test -— Test running failed: Instrumentation run failed due to 'Process crashed.' 测试无法完成。 原因:“由于运行失败,仪器运行失败。 使用义式浓缩咖啡时 - Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Process crashed. when using Espresso 在“由于程序崩溃”导致仪器运行失败后,如何恢复Android Espresso测试? - How to resume Android Espresso test after 'Instrumentation run failed due to 'Process crashed.''? “测试未能完成运行。原因:'运行多个测试用例时'由于'进程崩溃'导致仪表运行失败。 - "Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Process crashed.'' while running multiple testcases Android Espresso:“没有找到测试”,“进程崩溃” - Android Espresso: “No test were found” , “Process crashed” 运行 android 仪器测试时等待进程出现超时 - Timed out waiting for process to appear while running android instrumentation test 通过Espresso运行单元测试时,由于“ java.lang.ClassNotFoundException”错误,导致仪表运行失败 - Instrumentation run failed due to 'java.lang.ClassNotFoundException'error while running Unit test through Espresso 如何在Firebase测试实验室中并行运行Espresso工具测试? - How to run Espresso instrumentation tests in parallel in Firebase Test Lab? Espresso Instrumentation测试-测试后如何卸载或删除应用 - Espresso Instrumentation Tests - how to uninstall or delete the app after the test Android 仪器测试:“找不到测试类”使用 Espresso 和 Spoon - Android Instrumentation Tests: 'Could not find test class' using Espresso and Spoon
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM