From: Bret Pettichord Date: 2008-08-15T08:30:17+09:00 Subject: Re: Problem running Watir script from cruise control ------=_Part_31501_19931698.1218756785504 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline AutoIt needs to have access to the desktop. Typically cruise control is run as a service and therefore its process does not have access to the desktop. I have run Cruise Control as a user program to workaround this problem. Bret On Thu, Aug 14, 2008 at 6:10 PM, Jade Tucker wrote: > Hi, > > I have a watir script to test a MS Sharepoint web site that is being run > by Cruise Control on a windows machine under an administrator account. > I have tested the script on the server just running it through the > command line and it works fine. When i log out and let cruise control > run the test it never stops. I have to log back in and kill the ie > process to see any output in my log file. The log reports that the > windows authentication diaglog was found and enters a username and > password(using autoit) and then it waits to check the title of the > webpage to make sure that it loaded. The script never makes it past > this step (@browser.title() or @browser.html()). > > This is part of my cruise control log: > ================================================ > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/ie.rb:447:in > `method_missing': unknown property or method `document' > (WIN32OLERuntimeError) > ]]> > > - > - ]]> > > - > - C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/ie.rb:447:in > `document' > ]]> > > - > - C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/page-container.rb:31:in > `page' > ]]> > > - > - C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/page-container.rb:37:in > `html' > ]]> > ================================================== > > I am not sure what is happening. I have tried to print the html data > into my log but that isn't working either. Anyhelp would be much > appreciated. I have another script running firewatir as a scheduled > task and it is working fine. > > Thanks for any advice or help you can offer. > -- > Posted via http://www.ruby-forum.com/. > > -- Bret Pettichord GTalk: bpettichord@gmail.com CTO, WatirCraft LLC, http://www.watircraft.com Lead Developer, Watir, http://wtr.rubyforge.org Blog (Essays), http://www.io.com/~wazmo/blog MiniBlog (Links), http://feeds.feedburner.com/bretshotlist ------=_Part_31501_19931698.1218756785504--