2015-07-20 180 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的路徑設置不正確。希望這個答案可以幫助其他人。