Sir Cody, thanks, I haven't yet had a chance to try out your suggestions. I will report back on my findings. I've been getting such strange and inconsistent results that I decided to rebuild my development system from bare metal just to remove any possibility of contaimination from all the various tools that I installed and removed during my testing tool evaluation and selection process. Already with the new system, I'm getting new inconsistent results. Here's the specs on the new environment:
Microsoft Windows XP Professional SP2
Microsoft Visual Studio 2005 Professional with SP1 (Web Application Projects using IIS, not Cassini)
Microsoft SQL Server 2005 Express
TestDriven.NET 2.8 Beta Enterprise (using the NUnit 2.4 installation contained in this product)
WebAii RC0
nDumbster 0.0.2
Microsoft IE Developer Toolbar
Microsoft Sandcastle June 2007
Microsoft AJAX Extentions 1.0 (not used, yet)
All testing done under IE6, Firefox is not an option.
AnkhSVN 1.0.1.2736 Final
TortoiseSVN 1.4.3
Now, sometimes when I run an individual test it passes. Other times, I get the following Error:
------ Test started: Assembly: reporting.dll ------
TestCase 'WATester.WebAiiNUnitTest1.Report_RequestRequestReportWithRefresh'
failed: ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
InError set by the client. Client Error:
System.IndexOutOfRangeException: Current frame index '1' is out of range of current frames count '1'
at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_3db93978-78df-4ba1-a206-902f312d41c3',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'1',InError:'True',Response:'System.IndexOutOfRangeException: Current frame index '1' is out of range of current frames count '1'
at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
at ArtOfTest.WebAii.Core.FramesCollection.RefreshAllDomTrees()
at ArtOfTest.WebAii.Core.Browser.UpdateFrames(BrowserCommand command)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Actions.InvokeEvent(Element targetElement, ScriptEventType eventType)
C:\Inetpub\wwwroot\reporting\reporting\WebAiiNUnitTest1.cs(679,0): at WATester.WebAiiNUnitTest1.Report_RequestRequestReportWithRefresh()
This test rebuilds the DB, writes some changes to the Web.config (appSetting keys to enable emails, also changes the smtp host to the local system), starts the nDumbster mock SMTP Server, calls LaunchNewBrowser(), navigates to the page, performs a few SetTexts on some fields, checks an autopostback checkbox, then blows up. Here's relevant lines:
Actions.Check(Find.ById("chkSame"), true); //Line 678
Actions.InvokeEvent(Find.ById(
"chkSame"), ScriptEventType.OnClick); //Line 679
Anybody have any thoughts as to why I am now getting this error intermittently?