Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing WatiN through MbUnit to test ASP .Net MVC web application
    text
    copied!<p>I am trying to apply some WatiN UI tests to my new ASP .Net MVC application, running the WatiN tests through MbUnit, but am having some difficulties.</p> <p>If I follow the instructions (exactly) on <a href="http://watin.sourceforge.net/gettingstarted.html" rel="nofollow noreferrer">this page</a>, then the google homepage loads, up the text is inserted, the search is done and the test passes. (no problem here).</p> <p>However, when I simply change the URL of the line...</p> <pre><code>var ie = new IE(new Uri("http://www.google.co.uk")); </code></pre> <p>to the website hosted on my PC through IIS (on Win7), (e.g. to <code>http://localhost/myapp/</code>) the homepage of my application loads fine, but the test-runner seems to still be waiting for confirmation that the page has loaded and then the test fails due to a timeout.</p> <p>Here's the failed response from within the IDE...</p> <pre><code>*** Failures *** Exception WatiN.Core.Exceptions.TimeoutException: Timeout while Internet Explorer state not complete at WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.ThrowTimeOutException(Exception lastException, String message) at WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.HandleTimeOut() at WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.Try[T](DoFunc`1 func) at WatiN.Core.WaitForCompleteBase.WaitUntil(DoFunc`1 waitWhile, BuildTimeOutExceptionMessage exceptionMessage) at WatiN.Core.Native.InternetExplorer.WaitForComplete.WaitWhileIEReadyStateNotComplete(IWebBrowser2 ie) at WatiN.Core.Native.InternetExplorer.IEWaitForComplete.DoWait() at WatiN.Core.DomContainer.WaitForComplete(IWait waitForComplete) at WatiN.Core.IE.WaitForComplete(Int32 waitForCompleteTimeOut) at WatiN.Core.DomContainer.WaitForComplete() at WatiN.Core.Browser.GoTo(Uri url) at WatiN.Core.IE.FinishInitialization(Uri uri) at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, IDialogHandler logonDialogHandler, Boolean createInNewProcess) at WatiN.Core.IE..ctor(Uri uri) at FppRendersUI.Test.Program.DoSomething() in C:\Dev\MyCode.Test\Program.cs:line 18 </code></pre> <p>Anybody else get this, or is it just me?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload