Why is WebAii from ArtOfTest timing out while trying to connect to Internet Explorer?

by Klaus Graefensteiner 18. February 2010 04:47

I am using WebAii from ArtOfTest to automate our Web UI testing. But one day it stopped working. While the tests were trying to launch Internet Explorer and navigate to an URL, the browser would just sit there for about 30 seconds and WebAii would then fail the test because of a timeout exception that it throws.

WebAiiTimeoutConnectingToIE

Figure 1: WebAii tests timing out while connecting to IE

Here is the exception message:

QuickStarts_NUnit_CS.Advanced.ExtensibleWebAiiEvents:
System.TimeoutException : Wait for condition has timed out


at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
at QuickStarts_NUnit_CS.Advanced.ExtensibleWebAiiEvents() in C:\Documents and Settings\klausg\My Documents\Visual Studio 2008\Projects\QuickStarts_NUnit_CS\Tests\Advanced.cs:line 115

Failed attempts

I googled the web and found some leads:

  • Check your security policy regarding Named Pipes
  • Disable any Internet Explorer plug-ins

I verified these settings and still no luck.

Success

Coincidentally I came across the ugly message box that informs you about the Internet Explorer Enhanced Security Configuration on Windows 2003 Server R2, where I was running the tests on. I said: “Hey, lets try disabling this feature.” and voila the unit tests didn’t fail anymore because of the connection timeout to Internet Explorer.

TestAreNowRunning

Figure 2: Tests are running again

Ausblick

Look at this blog post if you don’t know how to disable Internet Explorer Enhanced Security Configuration on Windows 2003 Server and on Windows 2008 Server: http://www.tellingmachine.com/post/How-to-disable-IE-Enhanced-Security-Configuration-on-Windows-2003-Server-R2-and-Windows-2008-Server-R2.aspx

Comments

5/13/2010 9:44:59 AM #

Ray

Klaus,
I always get the time out issue about the following line.
SilverlightApp app = ActiveBrowser.SilverlightApps()[0]- Timeout trying to connect to Silverlight App.

My PC is Windows 7 and VSTS 2010. I can't find any answers yet. Do you know how to fix it?

Thanks,

Ray

Ray United States |

Comments are closed

About Klaus Graefensteiner

I like the programming of machines.

Add to Google Reader or Homepage

LinkedIn FacebookTwitter View Klaus Graefensteiner's profile on Technorati
Klaus Graefensteiner

Klaus Graefensteiner
works as Developer In Test and is founder of the PowerShell Unit Testing Framework PSUnit. More...

Open Source Projects

PSUnit is a Unit Testing framwork for PowerShell. It is designed for simplicity and hosted by Codeplex.
BlogShell is The tool for lazy developers who like to automate the composition of blog content during the writing of a blog post. It is hosted by CodePlex.

Administration

About

Powered by:
BlogEngine.Net
Version: 1.6.1.0

License:
Creative Commons License

Copyright:
© Copyright 2012, Klaus Graefensteiner.

Disclaimer:
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design:
This blog theme was designed and is copyrighted 2012 by Klaus Graefensteiner

Rendertime:
Page rendered at 2/5/2012 11:06:25 PM (PST Pacific Standard Time UTC DST -7)