使用irb()接口时出错 - 在解析头中的块中使用HTTPClient :: KeepAliveDisconnected rescue

时间:2014-04-29 09:53:11

标签: android ruby calabash

我是Ruby / Calabash语言的新手,我正在使用irb(主)接口做一些例子;我已经在Android模拟器上使用' reinstall_apps'安装了myFirstApp。当我在irb()接口中用数字查询(" *")命令时,我收到此错误:

HTTPClient::KeepAliveDisconnected: HTTPClient::KeepAliveDisconnected
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclie
nt/session.rb:887:in `rescue in block in parse_header

你能帮帮我吗?

1 个答案:

答案 0 :(得分:5)

reinstall_apps命令后,您需要运行start_test_server_in_background

它将启动测试服务器和应用程序。现在,您可以在irb(主)控制台中运行query("*")命令。