- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我是 calabash-ios 的新手,有一个虚拟问题是:
我怎么可能用安装了 ipa 文件(包括 calabash 框架)但没有 xcodeproj 的真实设备运行 calabash 测试?
问题是我正在做 QA,Dev 只给我 ipa 文件进行测试,没有源代码。
更新:我可以通过添加 BUNDLE_ID 在控制台和 cucumber 中运行 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 文件。 :(谢谢
最佳答案
您应该设置 3 个变量:
$ DEVICE_TARGET=<UDID> \
DEVICE_ENDPOINT=http://<ip>:37265 \
BUNDLE_ID=com.example.YourApp cucumber
设备和主机应该在同一个网络上。
.ipa 必须安装在您的设备上。
您可以在 Xcode 中通过在设备管理器窗口中拖放或使用第三方工具(如 ideviceinstaller(可用于自制软件))来执行此操作。
您永远不要设置NO_LAUNCH
。
http://calabashapi.xamarin.com/ios/file.ENVIRONMENT_VARIABLES.html#label-NO_LAUNCH
您还需要启用您的设备进行开发,并在 Settings.app > Developer 中打开 UIAutomation。
更新 针对这个问题,我重写了 Testing on Physical Devices Calabash iOS 维基页面。哇,那内容太古老了!
关于ios - 葫芦-ios : Run test physical device installed ipa without xcodeproj,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32859217/
我正在尝试在 xamarin 表单上的单选按钮上执行新闻事件。单选按钮的索引为 0 到 5。 如果我运行 query("RadioButton", :contentDescription) 这将返回
当我需要运行一个简单的葫芦测试时,我总是会遇到 HTTPClient::KeepAliveDisconnected 异常。 控制台输出: Feature: Login As a User i wa
我是TeamCity / Spiratest的新手,并且具有以下要求: (a)我们必须让TeamCity运行Calabash测试并 (b)如果存在故障,则必须使用屏幕截图将缺陷记录到JIRA (c)并
我想编写一个测试来检测状态栏中是否显示带有特定文本的通知。到目前为止,我尝试使用 swipe 操作来拉下通知抽屉。遗憾的是,滑动只能左右滑动,不能向下滑动。我还尝试使用 drag 操作来下拉通知抽屉。
情况如下。我使用 Jenkins 2.32.2 创建了一个 headless 的 Ubuntu 16.04 Docker 容器,目前是 openjdk 1.8.0_121 以及 JDK 7u80(JD
我正在尝试使用 --keyboard_enter_char "Delete"-- 删除 textField 中的字符,这是我在步骤定义中的代码。 touch(query("textField")[0]
我正在尝试验证最初禁用 continueButton.isEnabled = false 的 UIButton 是否存在。 当我在 calabash-ios console 中检查树时,我得到以下结果
我从 calabash 开始,但无法运行测试。测试很简单,按一个TextView即可: Feature: Login feature Scenario: Given I am on the L
我正在尝试使用查询命令获取每个类的值。下面是我得到的示例 UI 组件: [0] { "class" => "UITabBarSwappableImageView",
我们有一个 UITextView,其中包含一个带有两个嵌入链接的属性字符串,这两个链接是使用 NSLinkAttributeName 在 TextView 中创建的。我们正在使用 Calabash 来
我正在使用calabash-android-java测试使用 Xamarin 构建的混合应用程序。正如您在下面看到的,我能够查询 DOM 元素,甚至将一些信息记录到控制台,但是当我执行 touch 命
我是 calabash-ios 的新手,有一个虚拟问题是: 我怎么可能用安装了 ipa 文件(包括 calabash 框架)但没有 xcodeproj 的真实设备运行 calabash 测试? 问题是
我们可以为 Calabash-Android 模拟 Android 设备上的主页按钮吗?我需要点击我们脚本中的主页按钮来使用 Calabash 执行我的脚本。 最佳答案 我自己还没有尝试过。但四处寻找
每次断言失败时,我都会遇到“堆栈级别太深(SystemStackError)”错误,无论实际的 :timeout_message 是什么 以下代码示例只是每次断言失败时出现上述错误的众多代码示例中的两
我是一名优秀的程序员,十分优秀!