简体   繁体   中英

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. 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: [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)

Any idea why this happens?

In my scenario it occurs only First time lunch the WebView.

This error is because of Android 9 and chrome 76.0.3809.89. Lower version of Android Is working fine I have tested in Android 5.1.1

In android WebView uses the chrome as browser.

Hope next version of chrome will fix this error.

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.

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