葫芦Android

时间:2013-10-11 09:47:35

标签: android calabash

我正在尝试为我的Android应用程序创建calabash测试。 我尝试执行命令calabash-android console但它失败了。 我尝试重新签名应用程序,但失败了。

请参阅附件http://d.pr/i/C7wg

感谢。

5 个答案:

答案 0 :(得分:1)

我因为签了错而得到了同样的错误。 Calabash android需要使用〜/ .android / debug.keystore进行签名,密码只需使用'android'即可。更多信息,您可以查看维基:https://github.com/calabash/calabash-android/wiki/Running-Calabash-Android

答案 1 :(得分:0)

您可以使用这些对我有用的步骤:

calabash-android build filename.apk
calabash-android resign filename.apk
calabash-android run filename.apk
calabash-android console filename.apk

键入控制台后,您必须编写

start_test_server_in_background

然后您可以应用查询。

答案 2 :(得分:0)

您可以尝试以下步骤

bundle exec calabash-android setup
bundle exec calabash-android resign apk
bundle exec calabash-android gen
bundle exec calabash-android run apk

答案 3 :(得分:0)

停用您的应用后,再次运行calabash-android console <path to apk file>。然后运行reinstall_apps。在此之后,您应该能够运行start_test_server_in_background来启动应用程序并执行您的控制台命令。

答案 4 :(得分:-1)

您可以将任何APK用于您的应用。例如,我使用此命令:

ADB_DEVICE_ARG=emulator-5554 calabash-android run ../build/apk/myapp-debug-unaligned.apk 

这是应用的调试版本。你能看到你的项目是否有另一个APK并尝试使用这个?

相关问题