calabash-ios unexpected ECONNREFUSED error after touch

若如初见. 提交于 2019-12-25 04:22:39

问题


xcode install /Applications/Xcode.app/Contents/Developer

calabash version

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

Calabash Server Version

{
                        "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)"
}

Target Etc.

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

The problem is that when I run cucumber I get the following random failures (which will also cause the build to fail and have caused me to remove functional testing from our CI/CD stack).

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

Other info:

Apple OS : 10.9.3

回答1:


I have been experiencing similar issues seeing lots of "ECONNREFUSED". When run on a local machine it worked fine but on Jenkins CI it failed.

It was caused by the build directory (APP_BUNDLE_PATH) not being removed when the job was started.

This is because "Wipe out repository and force clone" does not remove files that are not present in git i.e "./Build".



来源:https://stackoverflow.com/questions/24144434/calabash-ios-unexpected-econnrefused-error-after-touch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!