This is a migrated thread and some comments may be shown as answers.

Simple IE 8 NavigateTo Fails

12 Answers 103 Views
Telerik Testing Framework
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 06 Jan 2010, 03:58 PM
I have just started to use the WebAii Test Automation framework, and am attempting to get a simple test to run.  I want to navigate to the login page of our site and test for a specific string.  The NavigateTo call fails with the following error:

Baseline_Testing.LoginTest.SampleWebAiiTest:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
InError set by the client. Client Error:
System.Runtime.InteropServices.COMException (0x80040155): Interface not registered (Exception from HRESULT: 0x80040155)
   at mshtml.HTMLDocumentClass.IHTMLDocument3_get_documentElement()
   at ArtOfTest.InternetExplorer.IECommandProcessor.SetCurrentDocumentMarkup(BrowserCommand& response)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessInformationCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_197decda-6860-44db-a5cc-ae7ca9d8ed2c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80040155): Interface not registered (Exception from HRESULT: 0x80040155)
   at mshtml.HTMLDocumentClass.IHTMLDocument3_get_documentElement()
   at ArtOfTest.InternetExplorer.IECommandProcessor.SetCurrentDocumentMarkup(BrowserCommand& response)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessInformationCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

12 Answers, 1 is accepted

Sort by
0
Missing User
answered on 06 Jan 2010, 04:52 PM
Hello David,

Thanks for trying out the framewok. The error is a little odd, and if you haven't already done so, please make sure that IE is configrued as in this link and try the test again.

Also, are you using a 32 or 64 bit version of Windows? And is IE 8 the 32 or 64 bit version?

And do you have any other 3rd party Add-Ons for IE 8 also running when running the WebAii test?

Kind regards,
Nelson Sin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 06 Jan 2010, 05:36 PM
This running on WinXP SP3 (32-bit).  IE 8 is also 32-bit.

I tried disabling all other addins, and followed the settings as suggested in the ArtOfTest link provided.  I am still getting the same error.

I can state that FireFox works as expected.  Also, just running the default sample test (navigating to google) that is created from the template also fails when the browser is set to InternetExplorer, but with a timeout instead.
0
Missing User
answered on 06 Jan 2010, 06:18 PM
Hello again David,

If you can please close out Visual Studio and open up a VS Command Prompt. In the prompt, go to {frameworkInstallDir}\WebAii 2.0\bin.

Then try: regasm ArtOfTest.InternetExplorer.dll 

Also, please check the GAC and make sure ArtOfTest.InternetExplorer.dll is installed there. If not, in the same VS Command Prompt and bin folder try: gacutil /i ArtOfTest.InternetExplorer.dll 

All the best,
Nelson
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 06 Jan 2010, 06:39 PM
I did both (just to be sure) but there was no change.

One thing I did not mention that might be of interest is that the IE window does open to the correct page.  It then closes right back down.

I am running this from the NUnit (2.4.6) GUI if that makes any difference.
0
Missing User
answered on 06 Jan 2010, 08:17 PM
Hi again David,

I tried the sample test method in NUnit GUI, and it worked alright for me. Is the sample test at least navigating to google.com. If so, please post back with what error you are getting if it does not run to completion. 

And navigating to your website still throws the same error on the NavigateTo() line?

All the best,
Nelson
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 06 Jan 2010, 08:59 PM
When navigating to the Google site, the site is displayed, but the NavigateTo command times out.

When navigating to our site, the site is displayed, then the NavigateTo command errors out with the error in my first post.

One thought that I just had - we have our site configured in IE 8 to always be rendered in IE 7 Compatibility Mode.  (It is also set in the web.config so that when deployed to IIS, IIS will send the header to force it to compatibility mode.)  This also could be the issue - I am running the test from the Cassini WebDev environment - not from IIS.  Is this supported?
0
Missing User
answered on 06 Jan 2010, 10:13 PM
Hello again David,

Thanks for the update. The test should still work alright in compatability view. And I wouldn't think that running off a Cassini server would cause problems, but I'm currently trying to set something up to see if it is problematic.

So just to check if you get similar errors, can you try running a few of the tests in the NUnit C# or VB Quick Start Project? The project shortcut should be in the Telerik Start Menu Folder.

Sincerely,
Nelson
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 07 Jan 2010, 01:16 PM
I ran the simple test: Input/Input.ClientId().  I recieved the following error attempting to run it:

Input.ClientId : Failed

System.Threading.ThreadAbortException: Thread was being aborted.
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListener()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode codeCleanupCode backoutCodeObject userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContextContextCallback callbackObject state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContextContextCallback callbackObject state)
at System.Threading.ThreadHelper.ThreadStart()
Test method Telerik.WebAii.Controls.Html.Tests.Input.Input.ClientId threw exception:  System.TimeoutException: Wait for condition has timed out.
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync waitString extraExceptionInfo)
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
at ArtOfTest.Common.WaitSync.For(Predicate`1 predicateT targetBoolean invertConditionInt32 timeout)
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand requestBoolean performDomRefreshBoolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)
at Telerik.WebAii.Controls.Html.Tests.Input.Input.ClientId() in Input.cs: line 23

Note that line 23 is the line:

 

 
ActiveBrowser.NavigateTo("/input/examples/raddateinput/firstlook/defaultcs.aspx");   

 

 

 

0
Missing User
answered on 07 Jan 2010, 06:41 PM
Hi again David,

Thanks for trying that. So  the error you posted is not what happens when navigating to Google?

Also, can you send screenshots of your GAC? Specifically the sections with dlls starting with 'ArtOfTest...' and 'Telerik...'

After that, can you please try an uninstall/reinstall of the framework and try any simple test again.

All the best,
Nelson
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 07 Jan 2010, 06:50 PM
Yes, this is the same error in attempting to navigate to Google - Wait for condition has timed out.

Attached is the screen shot.

I will attempt a clean install.
0
Accepted
Konstantin Petkov
Telerik team
answered on 11 Jan 2010, 01:14 AM
Hello David,

Did the clean install work for you? Please let us know if further assistance is needed.

All the best,
Nelson
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 18 Feb 2010, 06:58 PM
Yes, a clean install on a clean system worked.
Tags
Telerik Testing Framework
Asked by
David
Top achievements
Rank 1
Answers by
Missing User
David
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or