超时::Selenium/Capybara/Cucumber 错误
我有一个场景步骤
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来问题出在 Fakeweb gem 上。我删除了那个 gem,现在它似乎可以工作了。
It looks like the issue was with Fakeweb gem.. i removed that gem and now it seems to be working..