Re: [Wtr-general] Watir tests as how-to documents

2006-11-10 Thread Ċ½eljko Filipin
Thank you all. I will take a look at tools that you suggested.Zeljko-- http://zeljkofilipin.com/
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] WIN32OLERuntimeError - I get this error after two hours - see details

2006-11-10 Thread Paul Carvalho
Hello Nathan, thanks for all the details you included in your initial post. While I don't think I can add anything more to the programming/troubleshooting side of things than have already been offered, I haven't seen anyone yet ask what else is going on in the system.
Do you have any other programs or services running in the background? (In particular any monitoring programs in the System Tray?) Have you tried collecting system performance metrics while you run your test? For example, using the Windows Perfmon tool, set up a new Counter Log to trace the CPU and Memory usage of the system and the iexplore process. Make sure to create a Text File (Comma delimited) Log file type so that you can bring the results into Excel and examine them after the test failure. Sysinternals also makes some nice tools that you can use for monitoring your system, including Process Explorer, Filemon, etc.
If you can't solve the mystery with the information you have, look for more clues and information.All the best!Cheers. Paul C.On 09/11/06, 
Nathan [EMAIL PROTECTED] wrote:
I am using Watir 1.4 (latest) and Ruby 1.8.5-21 I believe on Windows (of course) with Internet Explorer 6.PLEASE, please help me if you have a solution.I have thought to maybe put a begin...rescue...end block around some of my code to try and keep this from happening, but I'm not sure that would do any good.Oh also, I know pretty much that something WIERD is going on because my browser window is always closed at this point - when the error occurs, which is obviously the reason for the RPC Server problem.But WHY is it closing? 

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] WIN32OLERuntimeError - I get this error after two hours - see details

2006-11-10 Thread Chris McMahon
Do you have any other programs or services running in the background? (In particular any monitoring programs in the System Tray?) Have you tried collecting system performance metrics while you run your test? 
So just for fun I did this: #3require 'watir'include Watir@ie = IE.new@ie.set_fast_speed1.upto 3000 do |num|@ie.goto(C:\\Documents and Settings\\cmcmahon\\Desktop\\3000\\buttons1.html)
puts num@ie.button(:name, b1).clickend##where buttons1.html just goes to itself: input type = button class=italic_button name = b1 id = b2 value = Click Me 
document.location='buttons1.html'; title = this is button1and found some interesting things. First of all, there's a memory leak. Watch your ruby process in taskmanager and it's clear to see. It's not too egregious, but on a system with other demands on memory, could be a problem. 
The other thing is a little weirder. On my box at least, if I kill this process and re-start, the next ruby/watir process grabs as much memory as it had when I killed the previous process. I've never seen this behavior before and I can't explain it. 
At about 2700 clicks, the rate of clicking dropped dramatically, to maybe 2 or 3 clicks every 10 seconds, or even longer. It picked back up again, but at one point it was slow enough that a timeout could definitely have come into play. 
So I vote for a memory-leak problem or a timeout problem. 

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general