2009/2/3 Lisa Crispin <lisa.c...@gmail.com>:
> Has anyone seen this problem running Watir suites in Vista (64-bit) / IE7?
>
> We have a number of Watir suites, plus one big giant suite that includes all
> the others, the giant one takes maybe 3 hours to run.
>
> I ran this giant suite for 3+ years unattended on XP / IE6 without too much
> trouble - I'd kick it off when I left for the day. Occasionally a script
> would get an error I couldn't figure out - it would run fine when I ran it
> individually. But probably 4 out of 5 times, it ran fine with no errors at
> all.
>
We have just written some .Net screenshot code that will activate upon
an exception. I will ask if we can open-source it.
> It took me quite awhile to get everything working on Vista with the latest
> Ruby and Watir (1.6.2). If I run the big giant suite, at some point, the
> browser window just seems to hang - as if it is waiting for it to render. As
> far as I can tell, this doesn't consistently happen in the same place, it
> seems pretty random. Usually if I refresh the browser window manually, the
> suite can continue.
>
Re-open the 'Element' class maybe?
and then
ie.refresh if @browser.text.empty?
> If I run a large suite unattended, it always does that at some point, and of
> course I'm not here to 'wake it up' again. I thought it was because my Vista
> and hard drive were sleeping, so I set the sleep setting to 4 hours, but
> that didn't help much (definitely if the hard drive sleeps while the suites
> are running they will stop, but they get hung up even if the hard drive
> doesn't sleep).
>
> My temporary solution is run two suites separately rather than one big one
> while I am at work, and keep an eye on it so I can tickle it into going
> again if it hangs. But this is kind of a drag, I can't use the PC really
> while the scripts are running (I have a Mac and a Linux box to use so that
> isn't a giant problem but an annoyance). I've spent so much time on this
> that I have to move on, at least I can run the tests. I'm just wondering if
> anyone else has experienced the same problem? Is there some better way to
> run Watir scripts as a regression suite?
>
> thanks,
> Lisa
>
>
Aidy