超时::Selenium/Capybara/Cucumber 错误

发布于 2024-10-01 16:08:09 字数 1323 浏览 2 评论 0原文

我有一个场景步骤

When I fill in the following:
  | Credit Card Number | 4111111111111111 |
  | CCV Value          | 123              |
  | First name         | First            |
  | Last name          | Last             |
  | Address            | 123 My St.       |
  | City               | My City          |

此步骤不一致地失败并出现 Timeout::Error

(::) failed steps (::)

execution expired (Timeout::Error)
/usr/local/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill'
/usr/local/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
/usr/local/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
/usr/local/lib/ruby/1.8/net/protocol.rb:126:in `readline'
/usr/local/lib/ruby/1.8/net/http.rb:2020:in `read_status_line'
/usr/local/lib/ruby/1.8/net/http.rb:2009:in `read_new'
/usr/local/lib/ruby/1.8/net/http.rb:1050:in `request_without_fakeweb'
/usr/local/lib/ruby/1.8/net/http.rb:1037:in `request_without_fakeweb'
/usr/local/lib/ruby/1.8/net/http.rb:543:in `start'
/usr/local/lib/ruby/1.8/net/http.rb:1035:in `request_without_fakeweb'
./features/step_definitions/web_steps.rb:41
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:40:in `/^(?:|I )fill in "([^"]*)" with "([^"]*)"(?: within "([^"]*)")?$/'

更奇怪的是,该步骤在填充不同字段时失败。任何指针将不胜感激..

I have a Scenario step

When I fill in the following:
  | Credit Card Number | 4111111111111111 |
  | CCV Value          | 123              |
  | First name         | First            |
  | Last name          | Last             |
  | Address            | 123 My St.       |
  | City               | My City          |

This step is inconsistently failing with a Timeout::Error

(::) failed steps (::)

execution expired (Timeout::Error)
/usr/local/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill'
/usr/local/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
/usr/local/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
/usr/local/lib/ruby/1.8/net/protocol.rb:126:in `readline'
/usr/local/lib/ruby/1.8/net/http.rb:2020:in `read_status_line'
/usr/local/lib/ruby/1.8/net/http.rb:2009:in `read_new'
/usr/local/lib/ruby/1.8/net/http.rb:1050:in `request_without_fakeweb'
/usr/local/lib/ruby/1.8/net/http.rb:1037:in `request_without_fakeweb'
/usr/local/lib/ruby/1.8/net/http.rb:543:in `start'
/usr/local/lib/ruby/1.8/net/http.rb:1035:in `request_without_fakeweb'
./features/step_definitions/web_steps.rb:41
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:40:in `/^(?:|I )fill in "([^"]*)" with "([^"]*)"(?: within "([^"]*)")?$/'

And its even weirder that the step fails when filling different fields. Any pointer would be greatly appreciated..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人海汹涌 2024-10-08 16:08:09

看起来问题出在 Fakeweb gem 上。我删除了那个 gem,现在它似乎可以工作了。

It looks like the issue was with Fakeweb gem.. i removed that gem and now it seems to be working..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文