[wtr-general] Re: Unable to create a new IE instance
Thanks Bret, Your statement is absolutely true. Just i killed the remaining IE instances before starting a new IE instance. Problem solved. Thanks, Prince3105 On Oct 13, 6:59 am, Bret Pettichord b...@pettichord.com wrote: 60 IE instances is a lot. My first guess would be that IE7 uses more memory that IE6 and that therefore you can't create as many instances of it. You might consider getting more RAM to fix your problem. Bret Prince3105 wrote: Hi ALl, I am using below package. Watir version - 1.6.2 Ruby version - 1.8.6 I am using below code for log-in in batch running. require 'watir/ie' require 'watir/testcase' require 'watir/cookiemanager' require 'watir\contrib\enabled_popup' require 'watir/winClicker' require 'time' require 'win32/clipboard' include Win32 Watir::CookieManager::WatirHelper.deleteSpecialFolderContents (Watir::CookieManager::WatirHelper::COOKIES) Watir::CookieManager::WatirHelper.deleteSpecialFolderContents (Watir::CookieManager::WatirHelper::INTERNET_CACHE) $url = http://iic66/icomettest/iCometTest13/Login.aspx; $corp_id = admin $corp_password = admin def page_login(user_id, password) @ie = Watir::IE.new @ie.goto $url @ie.maximize @ie.bring_to_front @ie.text_field(:id,txtUserName).set user_id @ie.text_field(:id,txtPassword).set password @ie.button(:id,btnSubmit).click end class Test1 Watir::TestCase def test_a page_login($corp_id, $corp_password) # Some validation codes end end since its a batch running, this function creates more than 60 IE instances in the test and i didn't face any issues. Last week i updated my IE version from 6 to 7 and ran the script again. But that function struggled in many times and didn't created some IE instances and threw below error. But the same code worked good in IE 6, but it failed in IE 7. It failed 5 times out of 62 new IE instances. Error: test_b(Test92): WIN32OLERuntimeError: failed to create WIN32OLE object from `InternetExplorer.Application' HRESULT error code:0x80004005 Unspecified error c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 167:in `initialize' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 167:in `new' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 167:in `create_browser_window' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 91:in `_new_window_init' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: 87:in `initialize' StoresSpares_Masters.RB:196:in `new' StoresSpares_Masters.RB:196:in `page_login' StoresSpares_Masters.RB:424:in `test_b' So friends please take a look on my code, if any error in my code please correct it. If any workaround or some other ways are there please post it. Thanks, Prince3105 -- Bret Pettichord Lead Developer, Watir,www.watir.com Blog,www.io.com/~wazmo/blog Twitter,www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Watir -Ajax Application working in IE6 but not in IE7
Hi all !! Can anyone help me out with this? The application has multiple frames. It executes wel in IE6 but not in IE 7. The error is : Frame not found exception And the frame cannot be opened (ie.goto()) directly. One of u suggested the following url, we tried all the options in the given link, but no success. http://wiki.openqa.org/display/WTR/Frames 1 ) IE.goto We couldnt access the frame straight away. We ' ll hav to cross the all pages from the Login to the destiny. 2) Tried truting the Site 3) It requires High security.. By default it changes to Medium even after we tried putting it to Low. Hope there would be soln. Thanks for ur help Regards, Amudha -- Regards Amudha --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Capturing Java Script Errors
Hi Jarmo Can you share the code for the AutoIt if its not an issue. I would be interested in something similar for our work. On Fri, Oct 9, 2009 at 3:46 PM, Jarmo Pertman jarm...@gmail.com wrote: Hello. We used AutoIt for opening the javascript error message window, then make a screenshot of the error message itself and close the window, not that IE js error messages would be useful on most of the times. This is a little dirty hack, but it works for us sort of. Jarmo On Oct 9, 6:15 am, dt_nz david.tay...@sungard.com wrote: Hi I was hoping someone could point me in the right direction to get some help capturing java script errors. We have a rather large number of tests that are executed during our regression run, and there can be a significant amount of page reloads etc that sometimes cause java script errors. In the past we have simply turned java scripts off from popping up so our tests continue without stopping, and relied on manual testing to pick the errors up. Any help would be appreciated --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Capturing Java Script Errors
Hi Bret Is there a way in watir I can fetch the warning message which appears in the status bar of IE during a JS error? Can that be a solution for this issue? Please let me know. Thanks Pallavi. On Mon, Oct 12, 2009 at 8:45 AM, Bret Pettichord b...@pettichord.comwrote: Marlon MxM wrote: have you tried the solutions listed here http://wiki.openqa.org/display/WTR/Pop+Ups? Mostly that consists of variations on using AutoIt. I'm looking for more creative approaches. E.g. as regards this dialog: http://wiki.openqa.org/display/WTR/Security+Information I got rid of this simply by changing the security setting of the browser (manually) to stop displaying this window. I know that there must be some hook that is available to trap the javascript errors. If you have Visual Studio installed, instead of getting this dialog, the visual studio debugger is started up. So there is a hook there. I was thinking it would be cool to hook in our own code to that hook, and was wondering if any one had already done this. Bret -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Capturing Java Script Errors
Good idea. browser.status will report the status message. Could you check this out and let us know if it has promise? Bret Pallavi Sharma wrote: Hi Bret Is there a way in watir I can fetch the warning message which appears in the status bar of IE during a JS error? Can that be a solution for this issue? Please let me know. Thanks Pallavi. On Mon, Oct 12, 2009 at 8:45 AM, Bret Pettichord b...@pettichord.com mailto:b...@pettichord.com wrote: Marlon MxM wrote: have you tried the solutions listed here http://wiki.openqa.org/display/WTR/Pop+Ups? Mostly that consists of variations on using AutoIt. I'm looking for more creative approaches. E.g. as regards this dialog: http://wiki.openqa.org/display/WTR/Security+Information I got rid of this simply by changing the security setting of the browser (manually) to stop displaying this window. I know that there must be some hook that is available to trap the javascript errors. If you have Visual Studio installed, instead of getting this dialog, the visual studio debugger is started up. So there is a hook there. I was thinking it would be cool to hook in our own code to that hook, and was wondering if any one had already done this. Bret -- Bret Pettichord Lead Developer, Watir, www.watir.com http://www.watir.com Blog, www.io.com/~wazmo/blog http://www.io.com/%7Ewazmo/blog Twitter, www.twitter.com/bpettichord http://www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Does anyone have examples of using rspec with safariwatir
Hi, If there were better examples, then I wouldn't have to re-write them. Your comments should have been taken off-line. Aidy On 13/10/2009, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis aidy.le...@googlemail.com wrote: I have written a new example here: http://wiki.openqa.org/display/WTR/RSpec Aidy, I appreciate your contribution, but you broke Tutorial navigation. Go to contents, previous, next page. text at the bottom of the page helps users to follow the tutorial. I have fixed it. Please be more careful the next time. Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Does anyone have examples of using rspec with safariwatir
Hi, If there were better examples, then I wouldn't have to re-write them. Your comments should have been taken off-line. Aidy On 13/10/2009, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis aidy.le...@googlemail.com wrote: I have written a new example here: http://wiki.openqa.org/display/WTR/RSpec Aidy, I appreciate your contribution, but you broke Tutorial navigation. Go to contents, previous, next page. text at the bottom of the page helps users to follow the tutorial. I have fixed it. Please be more careful the next time. Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Does anyone have examples of using rspec with safariwatir
On Wed, Oct 14, 2009 at 4:26 PM, aidy lewis aidy.le...@googlemail.com wrote: If there were better examples, then I wouldn't have to re-write them. I was not complaining about the example, I just said you have broke tutorial navigation. Your comments should have been taken off-line. I did not mean to be rude, I posted my comment here on purpose, so other people should know to watch out for tutorial navigation when editing pages. Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Capturing Java Script Errors
i tried this aqpproach a long time ago, and it didnt work if I remember. I have recollections of trying to see if the js error icon was there too. think in the end I just switched 'display js errors' on so the test would stop if there was an error. Paul On Wed, Oct 14, 2009 at 8:18 AM, Bret Pettichord b...@pettichord.comwrote: Good idea. browser.status will report the status message. Could you check this out and let us know if it has promise? Bret Pallavi Sharma wrote: Hi Bret Is there a way in watir I can fetch the warning message which appears in the status bar of IE during a JS error? Can that be a solution for this issue? Please let me know. Thanks Pallavi. On Mon, Oct 12, 2009 at 8:45 AM, Bret Pettichord b...@pettichord.com mailto:b...@pettichord.com wrote: Marlon MxM wrote: have you tried the solutions listed here http://wiki.openqa.org/display/WTR/Pop+Ups? Mostly that consists of variations on using AutoIt. I'm looking for more creative approaches. E.g. as regards this dialog: http://wiki.openqa.org/display/WTR/Security+Information I got rid of this simply by changing the security setting of the browser (manually) to stop displaying this window. I know that there must be some hook that is available to trap the javascript errors. If you have Visual Studio installed, instead of getting this dialog, the visual studio debugger is started up. So there is a hook there. I was thinking it would be cool to hook in our own code to that hook, and was wondering if any one had already done this. Bret -- Bret Pettichord Lead Developer, Watir, www.watir.com http://www.watir.com Blog, www.io.com/~wazmo/blog http://www.io.com/%7Ewazmo/blog http://www.io.com/%7Ewazmo/blog Twitter, www.twitter.com/bpettichord http://www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] using li in safariwatir
Trying to click an element in a list using li: @browser.li(:class,folder).link(:index,2).click However when I try to run this I get: undefined method `li' for #Watir::Safari:0x1031d8860 I found a thread saying this works for watir on ie. Is this just not implemented in safariwatir at this time? If not can someone propose an alternative way of clicking the element in the li using safariwatir? Thank you in advance P.S. I get the same issue above if I try to select on a page element by title or text. Are these no implemented in Safariwatir ether? If not is the a change these could be implemented soon? Thanks again --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Dwatir - Can this help running watir tests on remote machines?
Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel on remote machines)? I searched the web and came with Dwatir as a relevant option(?). Unfortunately I couldn't figure how to use it. I would appreciate an example of Dwatir or any other way to run watir tests on remote machines. Cheers, Guy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
first Ive heard of that project ( http://rubyforge.org/projects/dwatir/ ) Ive used watir remotely by using remote desktop. Paul On Wed, Oct 14, 2009 at 9:41 AM, Guy guy.kid...@gmail.com wrote: Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel on remote machines)? I searched the web and came with Dwatir as a relevant option(?). Unfortunately I couldn't figure how to use it. I would appreciate an example of Dwatir or any other way to run watir tests on remote machines. Cheers, Guy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Running couples tests as a suite
I'm going to direct you first to http://watir.com/documentation/, and from there to http://wiki.openqa.org/display/WTR/FAQ where such frequently asked questions as this are handled. On Wed, Oct 14, 2009 at 10:57 AM, Shlomit Gazit shlomitpatr...@gmail.comwrote: Do you have a suggestion for key words to search? On Tue, Oct 13, 2009 at 5:23 PM, Wesley Chen cjq@gmail.com wrote: Hi, Guy, I think you can get hundreds of replies about your question in the group. Would you please search it in google or in the group? Thanks. Wesley Chen. For life, the easier, the better. On Wed, Oct 14, 2009 at 8:16 AM, Shlomit Gazit shlomitpatr...@gmail.comwrote: I want to run couples of tests from one test, like a suite. Is it possible to do it? If yes, how? Thank you, Shlomit -- Nathan Lane Blog, http://blog.nathandelane.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Difference b/w Click_no_wait and .Click!
The case I have encountered for using click!, is when 'click' doesn't return for a long time (or sometimes never depending on how buggy a web page or ad-servers are), and a 'click!' followed by a 'wait_until' to check the event success/fail is sufficient. --Shane. On Oct 13, 12:44 pm, Bret Pettichord b...@pettichord.com wrote: Shane wrote: So if no IE modal dialogs pop up, I would recommend you use click!, because you don't have the overhead of starting up a new ruby process each time. And that has worked for me so far. In this case, i would recommend using plain old click. I have not seen a use case for click! Bret --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
We use hudson to run our tests on multiple machines. It automatically distributes tests to an unused machine. http://hudson-ci.org/ Guy wrote: Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel on remote machines)? I searched the web and came with Dwatir as a relevant option(?). Unfortunately I couldn't figure how to use it. I would appreciate an example of Dwatir or any other way to run watir tests on remote machines. Cheers, Guy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Difference b/w Click_no_wait and .Click!
Shane wrote: The case I have encountered for using click!, is when 'click' doesn't return for a long time (or sometimes never depending on how buggy a web page or ad-servers are), and a 'click!' followed by a 'wait_until' to check the event success/fail is sufficient. That makes sense to me. Thanks. Bret --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
Bret - Can you use Hudson to distribute tests on command (as opposed to in conjunction with some sort of build event)? If so, I would be really interested in how you do that. Alan -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Bret Pettichord Sent: Wednesday, October 14, 2009 1:50 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Dwatir - Can this help running watir tests on remote machines? We use hudson to run our tests on multiple machines. It automatically distributes tests to an unused machine. http://hudson-ci.org/ Guy wrote: Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel on remote machines)? I searched the web and came with Dwatir as a relevant option(?). Unfortunately I couldn't figure how to use it. I would appreciate an example of Dwatir or any other way to run watir tests on remote machines. Cheers, Guy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
In the past I had created a framework for just such a case. The framework is somewhat klunky, but the idea is that you have Ruby, Watir, and a test agent running on the remote machines, and then you have a master machine from which you tell the remote agents to run test x. I stored all of my tests as Globs in a database, so that I can update them on the fly, but the system itself is relatively simple. You could build one. On Wed, Oct 14, 2009 at 1:52 PM, Alan Baird alan.ba...@riskmetrics.comwrote: Bret - Can you use Hudson to distribute tests on command (as opposed to in conjunction with some sort of build event)? If so, I would be really interested in how you do that. Alan -Original Message- From: watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] On Behalf Of Bret Pettichord Sent: Wednesday, October 14, 2009 1:50 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Dwatir - Can this help running watir tests on remote machines? We use hudson to run our tests on multiple machines. It automatically distributes tests to an unused machine. http://hudson-ci.org/ Guy wrote: Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel on remote machines)? I searched the web and came with Dwatir as a relevant option(?). Unfortunately I couldn't figure how to use it. I would appreciate an example of Dwatir or any other way to run watir tests on remote machines. Cheers, Guy -- Nathan Lane Blog, http://blog.nathandelane.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
You can check out what there is at http://code.google.com/p/adanna-scheduler/ On Wed, Oct 14, 2009 at 1:58 PM, Nathan Lane nathamberl...@gmail.comwrote: In the past I had created a framework for just such a case. The framework is somewhat klunky, but the idea is that you have Ruby, Watir, and a test agent running on the remote machines, and then you have a master machine from which you tell the remote agents to run test x. I stored all of my tests as Globs in a database, so that I can update them on the fly, but the system itself is relatively simple. You could build one. On Wed, Oct 14, 2009 at 1:52 PM, Alan Baird alan.ba...@riskmetrics.comwrote: Bret - Can you use Hudson to distribute tests on command (as opposed to in conjunction with some sort of build event)? If so, I would be really interested in how you do that. Alan -Original Message- From: watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] On Behalf Of Bret Pettichord Sent: Wednesday, October 14, 2009 1:50 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Dwatir - Can this help running watir tests on remote machines? We use hudson to run our tests on multiple machines. It automatically distributes tests to an unused machine. http://hudson-ci.org/ Guy wrote: Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel on remote machines)? I searched the web and came with Dwatir as a relevant option(?). Unfortunately I couldn't figure how to use it. I would appreciate an example of Dwatir or any other way to run watir tests on remote machines. Cheers, Guy -- Nathan Lane Blog, http://blog.nathandelane.com -- Nathan Lane Blog, http://blog.nathandelane.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
Actually, I already have on of them, and it's kind of clunky (I built it on rails). But if somebody's already coded something like that for Hudson, I'd rather maintain theirs. :) Alan From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Nathan Lane Sent: Wednesday, October 14, 2009 2:59 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Dwatir - Can this help running watir tests on remote machines? In the past I had created a framework for just such a case. The framework is somewhat klunky, but the idea is that you have Ruby, Watir, and a test agent running on the remote machines, and then you have a master machine from which you tell the remote agents to run test x. I stored all of my tests as Globs in a database, so that I can update them on the fly, but the system itself is relatively simple. You could build one. On Wed, Oct 14, 2009 at 1:52 PM, Alan Baird alan.ba...@riskmetrics.commailto:alan.ba...@riskmetrics.com wrote: Bret - Can you use Hudson to distribute tests on command (as opposed to in conjunction with some sort of build event)? If so, I would be really interested in how you do that. Alan -Original Message- From: watir-general@googlegroups.commailto:watir-general@googlegroups.com [mailto:watir-general@googlegroups.commailto:watir-general@googlegroups.com] On Behalf Of Bret Pettichord Sent: Wednesday, October 14, 2009 1:50 PM To: watir-general@googlegroups.commailto:watir-general@googlegroups.com Subject: [wtr-general] Re: Dwatir - Can this help running watir tests on remote machines? We use hudson to run our tests on multiple machines. It automatically distributes tests to an unused machine. http://hudson-ci.org/ Guy wrote: Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel on remote machines)? I searched the web and came with Dwatir as a relevant option(?). Unfortunately I couldn't figure how to use it. I would appreciate an example of Dwatir or any other way to run watir tests on remote machines. Cheers, Guy -- Nathan Lane Blog, http://blog.nathandelane.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
What are you already using? On Wed, Oct 14, 2009 at 2:01 PM, Alan Baird alan.ba...@riskmetrics.comwrote: Actually, I already have on of them, and it’s kind of clunky (I built it on rails). But if somebody’s already coded something like that for Hudson, I’d rather maintain theirs. J Alan -- *From:* watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] *On Behalf Of *Nathan Lane *Sent:* Wednesday, October 14, 2009 2:59 PM *To:* watir-general@googlegroups.com *Subject:* [wtr-general] Re: Dwatir - Can this help running watir tests on remote machines? In the past I had created a framework for just such a case. The framework is somewhat klunky, but the idea is that you have Ruby, Watir, and a test agent running on the remote machines, and then you have a master machine from which you tell the remote agents to run test x. I stored all of my tests as Globs in a database, so that I can update them on the fly, but the system itself is relatively simple. You could build one. On Wed, Oct 14, 2009 at 1:52 PM, Alan Baird alan.ba...@riskmetrics.com wrote: Bret - Can you use Hudson to distribute tests on command (as opposed to in conjunction with some sort of build event)? If so, I would be really interested in how you do that. Alan -Original Message- From: watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] On Behalf Of Bret Pettichord Sent: Wednesday, October 14, 2009 1:50 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Dwatir - Can this help running watir tests on remote machines? We use hudson to run our tests on multiple machines. It automatically distributes tests to an unused machine. http://hudson-ci.org/ Guy wrote: Hi All, Is there a way to run watir tests on remote machines (running few test suites in parallel on remote machines)? I searched the web and came with Dwatir as a relevant option(?). Unfortunately I couldn't figure how to use it. I would appreciate an example of Dwatir or any other way to run watir tests on remote machines. Cheers, Guy -- Nathan Lane Blog, http://blog.nathandelane.com -- Nathan Lane Blog, http://blog.nathandelane.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
What are you already using? Pretty much what you described. I wrote a rails front end with some *very* simple views and wrapped that around a restful interface that a client ruby script can interact with. All it does is sends down some arguments to the VM that it uses to call a command line to run all sorts of tests (rasta, rspec, test-unit, etc.). The reason it's clunky is that the normal unit test tools don't have good interfaces for reporting up the results of tests (unless you are running ci or something like that). There are tools that have HTML reports (like rspec), but it requires some tweaking of the reports to get it to integrate nicely with a webpage (a skill I don't have yet). Alan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Watir -Ajax Application working in IE6 but not in IE7
Hello Amudha, 1) Can you post the exact line of code that you're having a problem with? 2) Can you try this on a XP setup with IE7? 3) Are you getting a object not found error? 4) Can you post the exact error that you are getting as well? Regards, Darryl On Oct 14, 3:07 am, Amudha Priya amudha.bu...@gmail.com wrote: Hi all !! Can anyone help me out with this? The application has multiple frames. It executes wel in IE6 but not in IE 7. The error is : Frame not found exception And the frame cannot be opened (ie.goto()) directly. One of u suggested the following url, we tried all the options in the given link, but no success. http://wiki.openqa.org/display/WTR/Frames 1 ) IE.goto We couldnt access the frame straight away. We ' ll hav to cross the all pages from the Login to the destiny. 2) Tried truting the Site 3) It requires High security.. By default it changes to Medium even after we tried putting it to Low. Hope there would be soln. Thanks for ur help Regards, Amudha -- Regards Amudha --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
Alan Baird wrote: What are you already using? Pretty much what you described. I wrote a rails front end with some *very* simple views and wrapped that around a restful interface that a client ruby script can interact with. All it does is sends down some arguments to the VM that it uses to call a command line to run all sorts of tests (rasta, rspec, test-unit, etc.). The reason it's clunky is that the normal unit test tools don't have good interfaces for reporting up the results of tests (unless you are running ci or something like that). There are tools that have HTML reports (like rspec), but it requires some tweaking of the reports to get it to integrate nicely with a webpage (a skill I don't have yet). This is where hudson excels. You can also run tests manually through hudson (to answer the question you asked in a previous post). There is a run now button. I believe it is also scriptable. Strongly urge you to take a look at it. Bret -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: watir tests are not passing on my environment
My guess is that this is Ajax code and that a robust fix would be to add some calls to wait_until. I also suspect that your new environment is using a faster browser and/or version of watir and that this is why you are now seeing timing problems. Bret P.S. The other solution might be to litter your code with sleeps. Just kidding! Shlomit Gazit wrote: One specific example I have: I ran a test that is passing on my old environment and on the new environment it is intermittent. When trying to find popup: The code is: $ie.cell(:class, c2p-action-down-arrow-horizontal).click $ie.link(:id, ID_EDITWATCHERS_MENU).click $ie1 = Watir::IE.attach(:title, /C2P/) $ie1.wait $ie1.select_list(:id, RIGHT_HAND_LIST).select_item_in_select_list(:index, 0) $ie1.image(:src, /button_triangle_left/).click . I got the error: 1) Error: test_issue_top(TC_c2p_all_issues): Watir::Exception::UnknownObjectException: Unable to locate element, using :id, RIGHT_HAND_LIST C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb: 52:in `assert_exists' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ input_elements.rb:63:in `select_item_in_select_list' C:/Program Files/Genuitec/MyEclipse 7.5/Workspaces/MyEclipse/ c2p_watir/c2p_test_issues_2_menus_dev.rb:67:in `setup' 1 tests, 0 assertions, 0 failures, 1 errors On Oct 14, 12:16 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2009/10/14 Shlomit Gazit shlomitpatr...@gmail.com I dont know if a downgrade will solve the problem. I do not know too. Try and let us know. For instance I can click in a frame with the old machine and watir doesnt find it on the new machine. And the error message is? Željko -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Dwatir - Can this help running watir tests on remote machines?
Thank U all. The watir tool community is just great!! I will probably look into Hudson as I can't write such a framework myself. Guy On Oct 15, 12:12 pm, Bret Pettichord b...@pettichord.com wrote: Alan Baird wrote: What are you already using? Pretty much what you described. I wrote a rails front end with some *very* simple views and wrapped that around a restful interface that a client ruby script can interact with. All it does is sends down some arguments to the VM that it uses to call a command line to run all sorts of tests (rasta, rspec, test-unit, etc.). The reason it's clunky is that the normal unit test tools don't have good interfaces for reporting up the results of tests (unless you are running ci or something like that). There are tools that have HTML reports (like rspec), but it requires some tweaking of the reports to get it to integrate nicely with a webpage (a skill I don't have yet). This is where hudson excels. You can also run tests manually through hudson (to answer the question you asked in a previous post). There is a run now button. I believe it is also scriptable. Strongly urge you to take a look at it. Bret -- Bret Pettichord Lead Developer, Watir,www.watir.com Blog,www.io.com/~wazmo/blog Twitter,www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---