[Wtr-general] Concurrent tests, different regions...
Paul Carvalho
tester.paul at gmail.com
Wed Jun 6 09:45:10 EDT 2007
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 <forum-watir-users at openqa.org> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070606/22607ec0/attachment.html
More information about the Wtr-general
mailing list