calabash-ios触摸后意外ECONNREFUSED错误 [英] calabash-ios unexpected ECONNREFUSED error after touch

查看:405
本文介绍了calabash-ios触摸后意外ECONNREFUSED错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



螃蟹版

 ➜calabash.framework git:(master)✗资源/版本
0.9.169

Calabash服务器版本

  {
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英寸)/ 11D167)
}


b $ b

目标等。

  export DEBUG = 1 DEVICE_TARGET ='iPhone Retina(4英寸)问题是当我运行黄瓜时,我得到以下随机失败(这也将会导致错误)。导致构建失败,并导致我从我们的CI / CD堆栈中删除功能测试)。 

  0.9.169 / features / step_definitions / calabash_steps.rb:161 
然后我触摸Nationstar Bank#calabash -cucumber-0.9.169 / features / step_definitions / calabash_steps.rb:15
重试... Errno :: ECONNREFUSED:(Connection refused - connect(2)(http:// localhost:37265))
正在重试... Errno :: ECONNREFUSED:(Connection refused - connect(2)(http:// localhost:37265))
失败... Errno :: ECONNREFUSED
重试... Errno :: ECONNREFUSED: (连接被拒绝 - 连接(2)(http:// localhost:37265))
重试... Errno :: ECONNREFUSED: $ b Failing ... Errno :: ECONNREFUSED
然后我等待看到选择日期#calabash-cucumber-0.9.169 / features / step_definitions / calabash_steps.rb:161
在这里输入代码

其他信息:

  Apple OS:10.9.3 


解决方案

I已经遇到类似的问题,看到大量的ECONNREFUSED。当在本地机器上运行时,它运行正常,但在Jenkins CI它失败。



这是由于构建目录(APP_BUNDLE_PATH)在作业启动时不会被删除。



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


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

解决方案

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".

这篇关于calabash-ios触摸后意外ECONNREFUSED错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆