Reputation: 53
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:in
rbuf_fill' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/protocol.rb:134:inreaduntil' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/protocol.rb:144:in
readline' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/response.rb:39:inread_status_line' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/response.rb:28:in
read_new' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1408:inblock in transport_request' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1405:in
catch' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1405:intransport_request' /home/ivs/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http.rb:1378:in
request' /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?
Upvotes: 2
Views: 1526
Reputation: 156
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.
Upvotes: 2