On Monday, February 16, 2015 at 9:53:41 PM UTC-8, Ping-0t wrote:
>
> Hello again Guys..
>
>  I was wondering because yesterday I run my codes successfully but when I 
> execute this code today, It gives me an error[pasted below]. And as far as 
> I remember I didn't touch my codes because I copied one for a backup. And I 
> keep on executing this code since this morning it doesn't run successful. 
> We have slow internet connection today, does it affect the automation 
> testing?
>
> Thanks a lot!
>
>
> <snip...snip>
>
 

>   1) Error:
> Login#test_in:
> Timeout::Error: Timeout::Error
>     c:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill'
>     c:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:140:in `rbuf_fill'
>     c:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
>     c:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:2563:in `read_status_line'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:2552:in `read_new'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:1320:in `block in 
> transport_request'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:1317:in `catch'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:1317:in `transport_request'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:1294:in `request'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:1287:in `block in request'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:746:in `start'
>     c:/Ruby193/lib/ruby/1.9.1/net/http.rb:1285:in `request'
>     
> c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/w
> ebdriver/remote/http/default.rb:83:in `response_for'
>     
> c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/w
> ebdriver/remote/http/default.rb:39:in `request'
>     
> c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/w
> ebdriver/remote/http/common.rb:40:in `call'
>     
> c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/w
> ebdriver/remote/bridge.rb:640:in `raw_execute'
>     
> c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/w
> ebdriver/remote/bridge.rb:618:in `execute'
>     
> c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/w
> ebdriver/remote/bridge.rb:112:in `get'
>     
> c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/w
> ebdriver/common/navigation.rb:14:in `to'
>     
> c:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.11/lib/watir-webdriv
> er/browser.rb:77:in `goto'
>     revised_login.rb:14:in `test_in'
>
> 1 runs, 0 assertions, 0 failures, 1 errors, 0 skips
>
> User1@DOCUMENTATIONS /c/testing
> $
>

Yes that sort of error looks typical of the browser being unable to load 
the requested page.  Look on line 14 of your script, it's likely a .goto 
method, and the fault would tend to indicate that page did not load.

If your framework allows you to take specific actions on failures, you 
might want to take a screenshot at that point, which can assist in 
troubleshooting.  That's really easy to do with Cucumber for example.  I 
would presume Minitest has some similar capability, to have specific code 
you execute when there is an error, but not having used it I can't tell you 
how to do that off the top of my head. . 

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to