It's indicative of a slow site, in my experience.
In the years I've been using WatiN on various projects, I've run into only a
few cases where the default timeouts (30 seconds, if I recall correctly)
weren't sufficient. After chasing those down and verifying that there
wsan't a bug or something causing that particular wait to be unacceptably
long, we special-cased it and moved on.
But if you're getting numerous waits that last longer than 30 seconds, you
may want to investigate the code-base and see if that kind of performance is
truly acceptable in the areas where you're seeing it.
On Thu, Jun 10, 2010 at 11:21 AM, Suri, Raj <raj.suri@...> wrote:
> Thank you! I’m not seeing the timeouts anymore.
>
>
>
> Setting the timeout to 80 didn’t quite work but setting it to 120 seemed to
> do the trick. Would you say that upping the timeout value is standard
> practice or is it indicative of a problem in my code base. Is there
> something I should be looking at to see if I improve upon in my code so that
> such a large timeout value is not necessary. I don’t think I’m doing
> anything terribly intensive in my cucumber tests. Sometimes I’m just
> launching an initial page to start my test. Outside of Cucumber/Watin, it
> does not take long at all – perhaps a few seconds.
>
>
>
> Thanks again for taking the time out of your day to send me the response
> below.
>
>
>
> Raj
>
>
>
>
>
> *From:* wfbobby@... [mailto:wfbobby@...]
> *Sent:* Wednesday, June 09, 2010 9:28 PM
> *To:* Suri, Raj; watin-users
> *Subject:* Re: [Watin-users] WatiN.Core.Exceptions.TimeoutException
> problem
>
>
>
> [TestFixtureSetUp]
> public void SetUp()
> {
> Settings.WaitForCompleteTimeOut = 80;(you can change more time,
> 120 or more)
> Settings.WaitUntilExistsTimeOut = 80;
>
> platform = (Platform)Enum.Parse(typeof(Platform),
> System.Configuration.ConfigurationManager.AppSettings["Platform"]);
> targetHost =
> System.Configuration.ConfigurationManager.AppSettings["TargetHost"];
>
> switch (platform)
> {
> case Platform.IE:
>
> browser = new IE();
>
> browser.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Maximize);
> break;
> case Platform.FF:
> browser = new FireFox();
>
> browser.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Maximize);
> break;
>
> }
> ----- Original Message -----
> From: Suri, Raj <raj.suri@...>
> To: watin-users@... <watin-users@...>
> Subject: [Watin-users] WatiN.Core.Exceptions.TimeoutException problem
> Date: 2010-6-10 02:21:13
>
> Hi,
>
> I've just recently started using cucumber in conjunction with WatiN to run
> a host acceptance tests on an internal web based application written in C#.
> What I notice is that when I run my tests, I frequently get the following
> exception:
>
> Timeout while Internet Explorer state not complete
> (WatiN.Core.Exceptions.TimeoutException from :3901)
>
> It happens rather consistently at first. But, after running my test several
> times, I find that I stop getting the exception and my tests run to
> completion. But, then, every so often, the exception reappears. I can't seem
> to find a pattern.
>
> I'm fairly new to Cucumber/Watin development so I was wondering if someone
> could point me to a resource that may help me debug this issue. I've googled
> around and couldn't find anything that really helped. I guess, I'm not
> really sure how to get started in debugging this issue. I'm not even sure
> what other information to include in this email to help the members of this
> list help me. :)
>
> Any help/advice is greatly appreciated.
>
> Thanks,
> Raj
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Watin-users mailing list
> Watin-users@...
> https://lists.sourceforge.net/lists/listinfo/watin-users
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Watin-users mailing list
> Watin-users@...
> https://lists.sourceforge.net/lists/listinfo/watin-users
>
>
|