Thanks for all your answers. Actually my intention was to run my scripts for concurrent browsers. I thought if I run the scripts visible:false or (0), which was not the solution. Anyways, I can see my scripts pass but failed at the IE.attach function. I can see my scripts passed if it is a single iteration, if they are with concurrent users running with that script then it fails. I tried with another script which does not have IE.attach(:title, 'Google'), the script passed. If I try with IE.attach function then the script failed..
Note: The error message seems to vary from time to time. I have also gotten the following errors: 1) Error: testEJS(TestSuite): Watir::Exception::NoMatchingWindowFoundException: Unable to locate a window with title of E * Justice : : Notifications Lookup C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:297:in `attach_browser_window' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:149:in `_attach_init' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:143:in `attach' ./searchN1.rb:49:in `testEJS' 1) Error: testEJS(TestSuite): WIN32OLERuntimeError: unknown property or method: `value' HRESULT error code:0x80070005 Access is denied. C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:374:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:374:in `type_by_character' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:387:in `characters_in' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:372:in `type_by_character' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:338:in `set' ./searchN1.rb:51:in `testEJS' 1) Error: testEJS(TestSuite): WIN32OLERuntimeError: stop OLE error code:8000FFFF in <Unknown> <No Description> HRESULT error code:0x80020009 Exception occurred. C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:400:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:400:in `close' ./searchN1.rb:63:in `testEJS' 1) Error: testEJS(TestSuite): WIN32OLERuntimeError: unknown property or method `fireEvent' HRESULT error code:0x80070005 Access is denied. C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:339:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:339:in `set' ./searchN1.rb:51:in `testEJS' 1) Error: testEJS(TestSuite): WIN32OLERuntimeError: unknown property or method `click' HRESULT error code:0x80070005 Access is denied. C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:236:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:236:in `click!' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:219:in `click' ./searchN1.rb:54:in `testEJS' WIN32OLERuntimeError: unknown property or method `document' HRESULT error code:0x800706b5 WIN32OLERuntimeError: unknown property or method `document' HRESULT error code:0x80010108 The object invoked has disconnected from its clients. WIN32OLERuntimeError: unknown property or method `document' HRESULT error code:0x800706ba Please help me if how can I ensure my scripts pass when they run with concurrent users/browers sessions using fork and spawn. thanks, venkat On Fri, Feb 5, 2010 at 7:34 AM, Wesley Chen <cjq....@gmail.com> wrote: > I think that's not what he want. > > > Wesley. > For life, the easier, the better. > > > > On Fri, Feb 5, 2010 at 4:16 AM, AR <reed.a...@gmail.com> wrote: > >> You can also set visible:false in the the options.yml file if you >> don't want to do it on a script by script basis. >> >> More details here: http://wiki.openqa.org/display/WTR/Browser.new >> >> On Feb 4, 11:37 am, orde <ohil...@gmail.com> wrote: >> > You can set the browser as invisible after launching the browser >> > (fromhttp://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000266 >> ): >> > >> > browser = Watir::Browser.new >> > browser.visible=(0) >> > >> > Not sure if that's what you're looking for, tho. Hope it helps. >> > >> > orde >> > >> > On Feb 4, 12:14 am, venkat <greet.ven...@gmail.com> wrote: >> > >> > > Thanks in advance if anybody answers my query here it is: >> > >> > > i have my watir script named login.rb which checks the functionality >> of >> > > Login, go to Inbox then Logout from Gmail website. >> > > If I run this login.rb using google loadtest example, it fails with >> multiple >> > > users (#5), multiple iterations(5). Hence I want run these tests in >> the >> > > background process without seeing on the functional GUI navigation on >> > > windows. >> > >> > > Would there be any solution to run my tests for load in the backgound? >> One >> > > of my friend's friend gave me clue that it can be done using >> > > Fork...Spawn...with parent process/ child process even in windows >> too... >> > >> > > Please help me >> > > venkat >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Watir General" group. >> To post to this group, send email to watir-general@googlegroups.com >> Before posting, please read the following guidelines: >> http://wiki.openqa.org/display/WTR/Support >> To unsubscribe from this group, send email to >> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/watir-general >> > > -- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To post to this group, send email to watir-general@googlegroups.com > Before posting, please read the following guidelines: > http://wiki.openqa.org/display/WTR/Support > To unsubscribe from this group, send email to > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/watir-general > -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general