2015-07-20 165 views
0

我试图运行iOS上蠡脚本,但不断收到以下错误:葫芦始终记录时,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 
    Given I am on the homepage # features/step_definitions/homepage_steps.rb:6 
     Connection refused - connect(2) (http://localhost:37265) (Errno::ECONNREFUSED) 
     ./features/PageObjects/home_page.rb:12:in `initialize' 
     ./features/step_definitions/homepage_steps.rb:7:in `new' 
     ./features/step_definitions/homepage_steps.rb:7:in `/^I am on the homepage$/' 
     features/general.feature:9:in `Given I am on the homepage' 

任何人有解决这个错误有什么建议?

+0

我们需要更多信息。 https://github.com/calabash/calabash-ios/wiki#reporting-problems – jmoody

回答

0

我不知道你是在iOS还是Android上运行。

在Android上运行时,这可能是由于设备与USB断开连接(不稳定的USB连接)导致的,或者以其他方式让ADB不可见。

+0

好点。我已经更新了提到iOS的问题。非常感谢。 –

-1

在这个例子中,我通过在01_launch.rb文件中注释了ount'APP_BUNDLE_PATH'来解决这个问题。现在都在工作。

所以看起来像APP_BUNDLE_PATH的路径设置不正确。希望这个答案可以帮助其他人。