Cucumber 葫芦ios触摸后出现意外错误
xcode安装 /Applications/Xcode.app/Contents/Developer 葫芦版Cucumber 葫芦ios触摸后出现意外错误,cucumber,calabash-ios,Cucumber,Calabash Ios,xcode安装 /Applications/Xcode.app/Contents/Developer 葫芦版 ➜ calabash.framework git:(master) ✗ Resources/version 0.9.169 葫芦服务器版本 { "outcome" => "SUCCESS", "app_id" => "<removed>",
➜ 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" => "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)"
}
问题是,当我运行cucumber时,我会遇到以下随机故障,这也会导致构建失败,并导致我从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
其他资料:
Apple OS : 10.9.3
我也遇到过类似的问题,看到了很多经济问题。在本地机器上运行时,它工作正常,但在Jenkins CI上失败 这是由于启动作业时未删除生成目录APP_BUNDLE_路径造成的
这是因为擦除存储库和强制克隆不会删除git中不存在的文件,例如./Build。您提到了随机故障。它只是在这一步随机失败,还是在其他地方失败?您还提到了CI/CD—这种故障是否只发生在CI/CD期间?乍一看,当按下Nationstar Bank按钮时,你的应用程序似乎正在崩溃。对葫芦服务器的后续调用将导致Errno::ECONNREFUSED:。是的,它们是随机的。有时,该测试将通过cucumber脚本的后续运行。这也发生在我的本地机器上。应用程序没有崩溃,因为这会产生与葫芦不同的错误,特别是JSON解析错误。感谢FO。应用程序崩溃可能会导致ECONREFUSE或JSON解析错误。是只有这一步随机失败,还是其他步骤以同样的方式失败?你能发布更多你的场景吗?在这一步之前发生了什么?您是否也在物理设备上看到了这一点?
Apple OS : 10.9.3