I am first time user trying to run Cucumber tests in Ubuntu.
Note: all the tests have been tested successfully on windows machines.

ubuntu 12.04
Ruby 2.1.0
selenium-webdriver (2.40.0)
watir-webdriver (0.6.8)
cucumber (1.3.10)

When i try running the same tests in Ubuntu, I get:

Net::ReadTimeout (Net::ReadTimeout) /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/protocol.rb:158:in rescue in rbuf_fill' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/protocol.rb:152:inrbuf_fill' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/protocol.rb:134:in readuntil' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/protocol.rb:144:inreadline' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/response.rb:39:in read_status_line' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/response.rb:28:inread_new' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1408:in block in transport_request' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1405:incatch' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1405:in transport_request' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1378:inrequest' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1371:in `block in request'

I can see that the Target page is loaded successfully but the test doesnt want to continue

I can see similar questions in How to deal with a page which fails to load and continue testing in Watir-Webdriver

Watir/Selenium - browser.goto keep getting TimeOut error on Chrome and Firefox

but both doesn't have proper resolution.

Can someone assist me with this?

有帮助吗?

解决方案

this actually related to your network issue. I think this issue was caused by failed to load all your web resources . selenium will wait for all the resouces to be loaded, if they can't be completed in a certain time, like 60 seconds, it will through out timeout exception.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top