At the bottom of this email is an old post (from
http://www.mail-archive.com/selenium-users@lists.public.thoughtworks.org/msg00045.html) I
found very much like some behavoir I am seeing.

Using ruby, when I run a driven test, I get

ERROR Errno::EINVAL: Invalid argument
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in `gets'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in
`__send__'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in
`_read_data'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httprequest.rb:324:in
`timeout'
C:/Dev/Program Files/ruby/lib/ruby/1.8/timeout.rb:55:in `timeout'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httprequest.rb:324:in
`_read_data'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httprequest.rb:335:in
`read_line'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httprequest.rb:225:in
`read_request_line'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httprequest.rb:86:in `parse'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/httpserver.rb:56:in `run'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:155:in
`start_thread'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:144:in
`start_thread'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/Dev/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:\Dev\Projects\a2c\a2csvn/test/functional/selenium.rb:123:in `initialize'
C:\Dev\Projects\a2c\a2csvn/test/functional/applicants_selenium_test.rb:24:in
`new'
C:\Dev\Projects\a2c\a2csvn/test/functional/applicants_selenium_test.rb:24:in
`test_Simple'
C:/Dev/Program Files/ruby/lib/ruby/1.8/test/unit/testcase.rb:70:in
`__send__'
C:/Dev/Program Files/ruby/lib/ruby/1.8/test/unit/testcase.rb:70:in `run'
C:/Dev/Program Files/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'
C:/Dev/Program Files/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'

It seems like a timeout occurs after everything should be shutdown:(

I also cannot execute two different selenium tests in the same suite (or
even in the same execution).  The port is appearantly not freed, I can use
7897 for the port of the second test, but I get two of the previous error.
I tried to call selenium.close - but that hangs and the test suite stops.


Any help suggestions or ideas???

Thanks,
Nate

 Attached message excerpt from
http://www.mail-archive.com/selenium-users@lists.public.thoughtworks.org/msg00045.html :

Bret Pettichord
Thu, 30 Jun 2005 10:24:38 -0700
Bug Report attached.


I made this code work back in 0.2.0, but haven't used it since. I'm not sure
when i'll get a chance to look into this problem to see what happened. Any
one else using the Ruby driver?
Bret



To: [EMAIL PROTECTED]
From: Phlip <[EMAIL PROTECTED]>
Sender: [EMAIL PROTECTED]
Date: Tue, 28 Jun 2005 20:50:02 -0700
Subject: [TFUI] Selenium, Ruby driven, hangs up on the first test?
\
TFUIers:

I'm trying to learn Selenium, because A> I kept seeing recommendations
for it, and B> it has a Java-free version. Impressive!

But here's what it does when I run its sample:

~/phlip/tools/selenium-0.5.0-ruby/ruby> ruby selenium_example.rb
ruby selenium_examplec:/ruby/lib/ruby/1.8/timeout.rb:42:in
`do_command': execution expired (Timeout::Error)
        from ./selenium.rb:48:in `timeout'
        from c:/ruby/lib/ruby/1.8/timeout.rb:55:in `timeout'
        from ./selenium.rb:48:in `do_command'
        from ./selenium.rb:76:in `method_missing'
        from selenium_example.rb:25

Selenium is hanging up after the first test command:

puts selenium.open('/test_click_page1.html')

It never puts anything, so it hangs inside the .open(). The web
browser pops up but just hangs there.

I have IE6 on WinXP SP1. (SP2 has several known bugs, including one
that screwed up my scanner. Probably for the best...;)

--
  Phlip
 
http://flea.sourceforge.net/resume.html


_____________________
 Bret Pettichord
 
www.pettichord.com

_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to