I have done away with multiple threads + new_process().
It works great for me.

The downside I encountered is if one of the thread is stuck, it basically stops 
all other threads.
I have played around with thread.priority and got some good luck with it. But, 
not solving the entire problem.

Another downside is it slows down you machine. So, make sure you have powerful 
machine to run on.

I also got away with logging for each thread, so in case of one thread crashes, 
I still got the up-to-date results.

Michael



----- Original Message ----
From: sadjester <[email protected]>
To: Watir General <[email protected]>
Sent: Thursday, January 8, 2009 10:28:07 AM
Subject: [wtr-general] Watir (Firewatir specifically) on multiple browser


I've been try to figure out what the best practice is for watir
regarding running a number of tests in parallel. So far, other then
deploying multiple machines and allocating "browser time" to a group
of tests and managing that, I haven't had an amazing amount of luck.

Initially, I thought - hey, we can just run some headless X11
instances (on the same machine) with a virtual frame buffer and just
assign firewatir specific ports to connect to - but I haven't found
anything in the api yet that would allow that. An extension could be
written, but before I undertake any kind of work to do that I was
wondering if anyone had solved this problem. I'm aware of the firefox
2.0 work with the jssh plugin that utilizes multiple profiles to
accomplish a similar goal, but I'd prefer to be able to utilize any
browser version, etc. Worst case, running a number of vm's on the
same machine *would* work, but you incur some extra overhead
obviously.

Any thoughts?

Michael Bernstein


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to