Espresso挂起UI,系统会杀死应用程序

时间:2016-11-25 14:29:37

标签: android-espresso

我有几个Espresso测试的测试类。当我尝试一起运行所有测试时,其中一个测试类在中间失败。当我单独运行失败的类时,它运行顺利。 Espresso的日志如下:

测试无法运行完成。原因:'由于'流程崩溃'导致仪表运行失败。检查设备logcat以获取详细信息 测试运行失败:由于“进程崩溃”,仪表运行失败。

调试日志显示以下消息:

D/LifecycleMonitor: Lifecycle status change: RESUMED
W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
W/google-breakpad: Chrome build fingerprint:
W/google-breakpad: 3.13
W/google-breakpad: 110
W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 9119
Disconnected from the target VM, address: 'localhost:8602', transport: 'socket'

其中说该过程被系统杀死,因为用户界面被绞死了。

那可能是什么原因呢?

编辑:

在2台Nexus 5设备上检查相同的测试后,发现崩溃发生在Android版本 6.0的设备上。在7.0 它工作正常。

0 个答案:

没有答案