0

xcode 安装 /Applications/Xcode.app/Contents/Developer

葫芦版

➜  calabash.framework git:(master) ✗ Resources/version
0.9.169

葫芦服务器版

{
                        "outcome" => "SUCCESS",
                         "app_id" => "<removed>",
               "simulator_device" => "iPhone",
                        "version" => "0.9.169",
                       "app_name" => "iPhone-cal",
    "iphone_app_emulated_on_ipad" => false,
                          "4inch" => true,
                            "git" => {
        "remote_origin" => "git@github.com:calabash/calabash-ios-server.git",
               "branch" => "master",
             "revision" => "ca62f6e"
},
                    "app_version" => "1.0",
                "    iOS_version" => "7.1",
                         "system" => "x86_64",
                      "simulator" => "iPhone Simulator 463.9.41, iPhone OS 7.1 (iPhone Retina (4-inch)/11D167)"
}

目标等

export DEBUG=1 DEVICE_TARGET='iPhone Retina (4-inch) - Simulator - iOS 7.1'

问题是,当我运行 cucumber 时,会出现以下随机故障(这也会导致构建失败并导致我从 CI/CD 堆栈中删除功能测试)。

0.9.169/features/step_definitions/calabash_steps.rb:161
    Then I touch "Nationstar Bank"                                 # calabash-cucumber-0.9.169/features/step_definitions/calabash_steps.rb:15
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265))
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265))
Failing... Errno::ECONNREFUSED
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265))
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265))
Failing... Errno::ECONNREFUSED
    Then I wait to see "Choose Date"                               # calabash-cucumber-0.9.169/features/step_definitions/calabash_steps.rb:161
    enter code here

其他信息:

Apple OS : 10.9.3
4

1 回答 1

0

我一直在遇到类似的问题,看到很多“ECONNREFUSED”。在本地机器上运行时它运行良好,但在 Jenkins CI 上它失败了。

这是由于启动作业时未删除构建目录(APP_BUNDLE_PATH)引起的。

这是因为“清除存储库并强制克隆”不会删除 git 中不存在的文件,即“./Build”。

于 2014-06-27T09:27:07.973 回答