Hi, Bill, I found the problem, I first put runner on G:\Documents and Settings\Administrator\My Documents\runner I saw some errors "ruby G:\Documents and ....., Could not access G:\Documnets and ..." "Wed Aug 18 12:19:54 -0400 2010: Read error: #<Errno::ECONNABORTED: An establishe d connection was aborted by the software in your host machine.>"
Then I put runner on G:\runner It works fine now. Thanks! Jennifer On Mon, Aug 16, 2010 at 9:50 PM, Bill Agee <billa...@gmail.com> wrote: > Hi, > > After you launched your script via the runner app, did it seem to execute > successfully? (I'm assuming you used the google test suite that's displayed > on the main page of the app after it's started...) Or did the script you > attempted to launch not run? > > The behavior you saw is normal if a test suite takes a long time to > complete - the viewconsole page (the one with the header "Console output:") > will refresh itself every 2 seconds while a test is running. > > But if a test suite finishes and the viewconsole page keeps refreshing, > it's probably because the script being launched does not use Test::Unit. > > The viewconsole page waits for one of the result lines seen in Test::Unit's > output to appear in the output...but if that line is never seen then the > refresh will recur until the browser is closed. > > I wrote that part a really long time ago when depending on Test::Unit > seemed like a reasonable idea. :) In hindsight the app should simply stop > refreshing the viewconsole page as soon as the script completes. > > Thanks > Bill > > > On Mon, Aug 16, 2010 at 2:48 PM, WatirJoy <chengfeng...@gmail.com> wrote: > >> Hi, Charles and other Watir experts, >> >> When I tried to execute a few line of ruby watir scripts in a cgi >> script, the page keep waiting, then timeout. Anyway, you mentioned >> rails app wiki:http://wiki.openqa.org/display/WTR/Rails+test+runner >> +example+app >> is what I am looking for. I followed the steps mentioned in the web >> page: >> >> 1)On the client that will run the tests, install rails with 'gem >> install rails' >> 2)Download runner.zip from the link below, and extract it in any dir >> on the client. >> 3)Start a cmd.exe shell and cd into the extracted 'runner' dir. >> 4)Launch the app with the command "ruby script/server" >> 5)From either the local or a remote machine, open a browser and access >> http://HOST:3000 <http://host:3000/> >> (where HOST is your machine's address) >> 6)Attempt to run the google test suite. (Note: Watir must be installed >> for the google suite to work.) >> >> But no console output, web server looked like keep looping: >> >> Processing RunnerController#viewconsole (for 127.0.0.1 at 2010-08-16 >> 17:39:56) >> POST] >> Parameters: {"authenticity_token"=>"D9j5PjYTwpBxKU4CyVQH/ >> cHn14FVGl8Vak9BIjs8j >> g="} >> Rendering runner/viewconsole >> Completed in 0ms (View: 0 | 200 OK [http://localhost/runner/ >> viewconsole] >> sole] >> >> >> Processing RunnerController#viewconsole (for 127.0.0.1 at 2010-08-16 >> 17:39:58) >> POST] >> Parameters: {"authenticity_token"=>"D9j5PjYTwpBxKU4CyVQH/ >> cHn14FVGl8Vak9BIjs8j >> g="} >> Rendering runner/viewconsole >> Completed in 0ms (View: 0 | 200 OK [http://localhost/runner/ >> viewconsole] >> sole] >> >> >> Processing RunnerController#viewconsole (for 127.0.0.1 at 2010-08-16 >> 17:40:00) >> POST] >> Parameters: {"authenticity_token"=>"D9j5PjYTwpBxKU4CyVQH/ >> cHn14FVGl8Vak9BIjs8j >> g="} >> Rendering runner/viewconsole >> Completed in 0ms (View: 0 | 200 OK [http://localhost/runner/ >> viewconsole] >> sole] >> >> >> Processing RunnerController#viewconsole (for 127.0.0.1 at 2010-08-16 >> 17:40:02) >> POST] >> Parameters: {"authenticity_token"=>"D9j5PjYTwpBxKU4CyVQH/ >> cHn14FVGl8Vak9BIjs8j >> g="} >> Rendering runner/viewconsole >> Completed in 0ms (View: 0 | 200 OK [http://localhost/runner/ >> viewconsole] >> sole] >> >> Did I miss something? >> >> Thanks! >> >> >> >> >> >> >> >> >> On Aug 13, 4:11 pm, Charley Baker <charley.ba...@gmail.com> wrote: >> > I don't have experience doing that with cgi. And you definitely want to >> back >> > up a few steps and give us more information. Honestly, I wouldn't do >> that, >> > there's a rails app that's a good start on the Watir wiki: >> http://wiki.openqa.org/display/WTR/Rails+test+runner+example+app If you >> > want continuous integration then there are multiple pages and refs out >> there >> > for that. >> > >> > Hopefully that app will give you a starting point, though I've not used >> it, >> > people can chime in. My only guess is you want to do something like >> that? >> > Again given your email it's hard to tell what you're looking for and >> what if >> > any errors you're experiencing. >> > >> > hth, >> > >> > Charley Baker >> > Lead Developer, Watir,http://watir.com >> > >> > >> > >> > On Fri, Aug 13, 2010 at 1:15 PM, WatirJoy <chengfeng...@gmail.com> >> wrote: >> > > Hi, >> > >> > > I tried to execute a few line of ruby watir scripts in a cgi script: >> > >> > > #!/ruby/bin/ruby -w >> > > require 'cgi' >> > > require 'stringio' >> > > require 'rubygems' >> > > require 'mysql' >> > > require 'watir' >> > > require 'time' >> > > cgi = CGI.new >> > >> > > serverIpValue = cgi.params['serverIp'][0] >> > > mailIpValue = cgi.params['mailIp'][0] >> > > mediaDrive = cgi.params['mediaDrive'][0] >> > > retension=cgi.params['retension'][0] >> > >> > > puts "Content-type: text/html" >> > > puts "<html>" >> > > puts "<body>" >> > > puts "serverIpValue:#{serverIpValue}<p>" >> > > puts "mailIpValue:#{mailIpValue}<p>" >> > > puts "mediaDrive:#{mediaDrive}<p>" >> > > puts "retension:#{retension}<p>" >> > > puts "Start initial system state check and system >> > > configuration...<p>" >> > > begin_time=Time.now >> > > ie = Watir::IE.new >> > > ie.goto "#{serverIpValue}" >> > > if ie.text.include?("Password:") >> > > puts "login in as user admin<p>" >> > > ie.text_field(:name, "j_username").set "admin" >> > > ie.text_field(:name, "j_password").set "admin" >> > > ie.button(:value, "Log in").click >> > > puts "ie.down_load_time<p>" >> > > end >> > > ie.close if ie >> > > puts "Initial account login passed<p>" >> > >> > > puts "</body>" >> > > puts "</html>" >> > >> > > -- >> > > Before posting, please readhttp://watir.com/support. In short: search >> > > before you ask, be nice. >> > >> > > You received this message because you are subscribed to >> > >http://groups.google.com/group/watir-general >> > > To post: watir-general@googlegroups.com >> > > To unsubscribe: >> > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> >> <watir-general%2bunsubscr...@googÂlegroups.com>- Hide quoted text - >> > >> > - Show quoted text - >> >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> You received this message because you are subscribed to >> http://groups.google.com/group/watir-general >> To post: watir-general@googlegroups.com >> To unsubscribe: >> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> >> > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > To post: watir-general@googlegroups.com > To unsubscribe: > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com