Armandos-MacBook-Air:cucumber armando.rodriguez$ calabash-android run m......apk找不到此应用程序和calabash版本组合的测试服务器。正在重新创建测试服务器。已完成测试服务器的签名。移动到test_servers/430f6c154d763823fecdda70ac84695a_0.4.18.apk功能:登录到应用程序
Scenario: Successful login # features/login.feature:3
as first time after
restart the simulator
4629 KB/s (555713 bytes in 0.117s)
4840 KB/s (665402 bytes in 0.134s)
android.util.AndroidException: INSTRUMENTATION_FAILED: com......test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner
at com.android.commands.am.Am.runInstrument(Am.java:586)
at com.android.commands.am.Am.run(Am.java:117)
at com.android.commands.am.Am.main(Am.java:80)
at com.android.internal.os.RuntimeInit.finishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238)
at dalvik.system.NativeStart.main(Native Method)
App did not start (RuntimeError)有什么想法吗?
发布于 2014-04-03 23:48:26
这对我来说相当令人困惑,但最终只是因为我没有足够的信息来了解工具失败的原因。
通过一些测试,我发现问题出在安装了插装APK,并通过
adb shell pm list instrumentation | grep <my.package.name>但是没有安装本应对其进行测试的软件包,并通过
adb shell pm list packages | grep <my.package.name>问题是,我试图安装调试版本,而生产版本已经存在(在我的情况下,具有不同的包名)在我具有冲突的ContentProvider的设备上。这可能更像是一种边缘情况,但我认为还有其他情况下,calabash试图在已经具有相同包名称的APK的设备上安装不同签名的APK。
https://stackoverflow.com/questions/20961417
复制相似问题