0
的Xcode安裝 /Applications/Xcode.app/Contents/Developer葫蘆-IOS意外ECONNREFUSED錯誤後觸摸
蠡版本
➜ 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" => "[email protected]: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
其他信息:
你提到隨機失敗。它只是隨機地在這一步失敗,還是在其他地方失敗?你還提到CI/CD--這種失敗只發生在CI/CD嗎?乍一看,這看起來像你的應用程序崩潰時,「國家銀行」按鈕被觸摸。隨後調用葫蘆服務器導致Errno :: ECONNREFUSED :. – jmoody
是的,它們是隨機的。有時候這個測試會在黃瓜腳本的後續運行中傳遞。這也發生在我的本地機器上。該應用程序不會崩潰,因爲這會產生與Calabash不同的錯誤,尤其是JSON分析錯誤。 –
感謝您的FO。應用程序崩潰可能會導致ECONNREFUSED或JSON解析錯誤。僅僅這個步驟是隨機失敗還是其他步驟以同樣的方式失敗?你可以發佈更多你的情景 - 這一步之前發生了什麼?你是否也在物理設備上看到這一點? – jmoody