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.

Now, on the other side of the equation, watir is being run from a remote 
webserver. And on that webserver I have a php page which controls the execution 
of the watir script and then posts the results in a table to the user.

So, at the moment, the user goes to the php page. Clicks "start test" and watir 
then goes to www.example.com and one by one tests each region. However, what I 
would like is when the user clicks the test button, four separate tests will 
begin and test each region concurrently.

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

Reply via email to