Test run failed: Instrumentation run failed due to 'Process crashed.'
2015-05-27 08:54
681 查看
我们在执行robotium时,经常会出现“Test run failed: Instrumentation run failed due to 'Process crashed.'”这个错误。
这是因为测试工程和被测工程在同一个进程,你调用上面的一段代码是清除应用程序的数据,但是清除应用数据过程中会强制kill掉这个应用进程,其实测试进程也被kill了,所以引起crash。
这是因为测试工程和被测工程在同一个进程,你调用上面的一段代码是清除应用程序的数据,但是清除应用数据过程中会强制kill掉这个应用进程,其实测试进程也被kill了,所以引起crash。
相关文章推荐
- Test run failed: Instrumentation run failed due to 'Process crashed.'解析
- Test run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'
- Android问题:Test run failed: Instrumentation run failed due to 'java.lang.RuntimeException'
- Robotium Instrumentation run failed due to 'java.lang.ClassNotFoundException'
- 解决Test running failed: Instrumentation run failed due to 'java.lang.IncompatibleClassChangeError'
- Test run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'
- Android单元测试Test run failed: Unable to find instrumentation target package
- [Android] Failed to install AndroidTest.apk on device 'emulator-5554!
- Test run failed: Unable to find instrumentation target package: org.XXX.XXXX
- Test run failed:Unable to find instrumentation target package
- Test run failed: Unable to find instrumentation target package: org.XXX.XXXX
- ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn'
- mount: mount to NFS server 'servtest' failed: timed out (retrying).
- Android:Failed to install UIWidgetTest.apk on device 'emulator-5554': timeout
- android单元测试Test run failed: Unable to find instrumentation target package: com.abc.wallpaper.test
- Android单元测试异常总结---Test run failed:Unable to find instrumentation target package
- Test run failed: Unable to find instrumentation target package: android.support.v7.appcompat
- Android异常总结---Test run failed:Unable to find instrumentation target package
- Table 'table_name' is marked as crashed and last (automatic?) repair failed解决办法
- Failed to install .apk on device 'emulator-5554': timeout解决方法