【发布时间】:2015-10-01 16:04:38
【问题描述】:
我是 calabash-ios 的新手,有一个愚蠢的问题是:
我怎么可能在安装了 ipa 文件(包括 calabash 框架)且没有 xcodeproj 的真实设备上运行葫芦测试?
问题是我在做 QA,而 Dev 只给我 ipa 文件来测试,没有源代码。
更新: 我可以通过添加 BUNDLE_ID 在控制台和黄瓜中运行 ipa 文件。并确保 CFNetwork.framework 包含在应用框架中以建立连接。
但是我在运行场景时遇到了另一个问题: 1.当我运行以下命令时:
DEVICE_ENDPOINT=http://192.168.1.9:37265 NO_LAUNCH=1 BUNDLE_ID=com.example.appname DEVICE_TARGET=UDID cucumber
然后我得到了这个错误:
A JSON text must at least contain two octets! (JSON::ParserError)
features/my_first.feature:8:in `Then I touch "LOG-IN/ CREATE ACCOUNT"'
跳过所有其他步骤
-
然后我运行控制台代码
DEVICE_ENDPOINT=http://192.168.1.9:37265 NO_LAUNCH=1 BUNDLE_ID=com.example.appname DEVICE_TARGET=UDID calabash-ios console
然后我运行 server_version 我收到回复说连接成功 但是当我运行 start_test_server_in_background 我等得太久了,我看到我的物理设备一直崩溃的应用程序一次又一次地启动,直到它停止:
Unable to start. Make sure you've set APP_BUNDLE_PATH to a build supported by this simulator version
Calabash::Cucumber::Launcher::StartError: Calabash::Cucumber::Launcher::StartError:
"Timed out waiting for UIAutomation run-loop Error while writing to fifo. RunLoop::Fifo::NoReaderConfiguredError.
2015-10-01 10:49:41.634 instruments[15640:10558880] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2015-10-01 10:49:42.574 instruments[15640:10558978] Attempting to change event horizon while disengage
2015-10-01 10:49:42.577 instruments[15640:10558877] Attempting to change event horizon while disengage
Instruments Trace Error : Target failed to run: Permission to debug app
任何人都可以帮忙!我试图搜索一些解决方案,但它们几乎在模拟器上发布并且它们包含 xcodeproj。作为 QA,我没有源代码,只有 .ipa 文件。 :( 谢谢
【问题讨论】:
-
我更新了答案。