The company I work for is running multiple screen scraping sessions and 
we ran into some of the same problems.  The biggest problem was that the 
session cookies would get overwritten and the scrapes would get crossed.

Our final solution was to run each scraper under a different user, which 
places their cache/cookie directories into different directories so that 
the session keys don't overwrite each other.

I didn't set up that environment so I don't have the exact commands 
handy, but I know our other engineer found a way to spawn all the 
sessions from one login, using some 'run as' parameter to specify the 
user for each Watir process.

Hope that helps,

David Schmidt
[EMAIL PROTECTED]

John Fitisoff wrote:
> Help! I'm new to Watir, and am trying to get my
> company to use it, but am running into a problem. I'm
> trying to run multiple, independent windows without
> having them interfere with each other. I've tried a
> few different things: 
>
> -ie, ie1, ie2 etc... (no globals)
>
> -Using winclicker to launch an existing HTML page and
> then attaching to it.
>
> -Looking at the concurrent_tests example.
>
> The reason that I'm doing this is I need to fit this
> in with what the build engineer is already doing. To
> make him happy, I need to deliver a suite of tests
> that can be run against different servers on the
> network, and at least some of the time these tests are
> going to be run simultaneously on a system that will
> host the test. In some cases, two different test
> suites would be running at the same time.
>
> I don't think I can use the concurrent example because
> these tests won't be run at exactly the same time and
> I also need to pass the test suite a base url for the
> server I'm testing against.
>
> No matter what I've tried, the instances end up
> interfering with each other and some of the tests fail
> with errors. Is there some way to work around this?
> I'm not the most technical person in the world but
> this is a really cool automation tool and I'd like to
> get it adopted here for UI testing. I'm not sure if
> I'll be able to do that if I can't figure out how to
> get past this. 
>
> Please don't make me go back to HTML Unit. :-)
>
> Thanks
>
> John
>   

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to