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'

問題は、キュウリを実行すると、次のランダムなエラーが発生することです (これにより、ビルドも失敗し、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 に答える