Without seeing more of the code, I'm pretty sure you need to start by moving
away from using Global variables.
On 06/06/07, eisdrache <[EMAIL PROTECTED]> wrote:
Here is the basic idea of what I am trying to do...
I have one site, lets call it www.example.com. On that site, there is a
login page which directs to four different regions, say
region1.example.com, region2.example.com, etc.
[snip]
I have tried setting up something like this:
php page:
$regions = array('region1','region2','region3','region4');
foreach ($regions as $region) {
$cmd = "start example.rbw $region";
exec($cmd);
sleep(3);
}
ruby page:
region = $ARGV[0]
$ie = Watir::IE.start("www.example.com")
$ie.text_field(:name, "user").set(username)
$ie.text_field(:name, "password").set(password)
$ie.select_list(:name, "region").select(region)
proceed with testing...
This, however, does not seem to work. Seems as if two or three instances
will start but only one will actually finish. So, hopefully this makes sense
and hopefully someone can help me figure this one out.
Thanks in advance.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general