Ruby 葫芦总是记录Errno::ECONNREFUSED
我试图在iOS上运行葫芦脚本,但不断出现以下错误:Ruby 葫芦总是记录Errno::ECONNREFUSED,ruby,testing,automation,runtime-error,calabash,Ruby,Testing,Automation,Runtime Error,Calabash,我试图在iOS上运行葫芦脚本,但不断出现以下错误: 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
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'
有人对修复此错误有什么建议吗?我不知道您是在iOS还是Android上运行
在Android上运行时,这可能是由于设备与USB断开连接(USB连接不稳定)或以其他方式对ADB不可见造成的。在本例中,我通过在01\u launch.rb文件中注释ount“APP\u BUNDLE\u PATH”修复了这一问题。现在都在工作
看起来应用程序包路径设置不正确。希望这个答案能对其他人有所帮助。说得好。我更新了问题,提到了iOS。非常感谢。我们需要更多的信息。