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

Internet Explorer stops working after running Navigate To step

10 Answers 205 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jamie
Top achievements
Rank 2
Jamie asked on 29 Aug 2011, 04:49 PM
I have an existing thread in which I mention this issue:
http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/javascript-message-box-handling.aspx

This was not happening on the 2011.5 version but when I updated to the 2011.7 Free testing framework I was getting this error.

We just installed the licensed version of Test Studio.  Now that I am at the licensed version of 2011.7 I am getting the error again when I try to navigate to one of my two web applications I am trying to create automated tests for.  Note, this only happens with one of the we applications.  This is happening in Test Studio with creating a new test, and it happens in Visual Studio 2011 with the WebAii referenced on the NavigateTo method.

I would suspect this has something to do with the web application I am testing against, since it happens on 1 of the 2 sites, but I do not know what to look at to determine why this is happening.  It is causing all my tests against this specific web app to fail due to the internet explorer instance failing and reloading.

As I stated, I can duplicate this in Test Studio when I created a basic test to log into my applications.

I researched a little bit and found a different but similiar thread, http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/explorer-has-stopped-responding.aspx, but I could not resolve my problem.

10 Answers, 1 is accepted

Sort by
0
Jamie
Top achievements
Rank 2
answered on 29 Aug 2011, 06:58 PM
I have attached a sample html page and the test.  I determined what is causing the problem.  But do not know why this would work in the 2011.5 version of the testing framework and not the 2011.7 testing framework.

0
Jamie
Top achievements
Rank 2
answered on 30 Aug 2011, 01:41 PM
I upgraded to your internal 111.8.29.0 build and it still causes IE to stop responding and reload, thus causing my test to fail.
0
Jamie
Top achievements
Rank 2
answered on 30 Aug 2011, 04:27 PM
Here is some more information from Visual Studio 2010, do not know if this will help.

Error Message:
Test method AgencyTestAutomation.TSSTest.TSS_DebugTest threw exception:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_1885d027-9d71-4b68-9cca-1d31717109c9',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.IO.IOException: Pipe is broken.
   at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
   at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
   at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
 ---> System.IO.IOException: Pipe is broken.


Error Stack Trace:
System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
ArtOfTest.WebAii.Core.Browser.IsReady()
ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
AgencyTestAutomation.TSSTest.TSS_DebugTest() in C:\_Agency\Agency\Main\Staffing\Tests\Functional\AgencyTestAutomation\AgencyTestAutomation\TSSTest.cs: line 958



Debug Trace:
Uncategorized: InternetExplorerActions.LaunchNewBrowserInstance() : Using: ArtOfTest.WebAii, Version=2011.1.829.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c
Uncategorized: InternetExplorerActions.LaunchNewBrowserInstance() : OS: Microsoft Windows NT 6.1.7600.0
Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=4064, Path="C:\Program Files (x86)\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").
Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=4723070)...
Framework: Connector.Start() : Process launched (ID=3496, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 7145712").
Framework: Connector.Start() : Process exited (ID=3496, ExitCode=0, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 7145712").
Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Process "QTAgent32" (ID=7228) is assumed to host the controller.
Uncategorized: Connector.InjectCode() : ------- Function Start  -------
Framework: Connector.InjectCode() : Connection string: C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2011.1.829.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?7228
Framework: InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 7145712 on another thread...
Framework: <>c__DisplayClasse.<WaitForDocument>b__7() : Attempting to get document from window handle
Framework: InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.
Framework: Connector.InjectCode() : Sending WM_COPYDATA to HWND 7145712 (lpData = "C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2011.1.829.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?7228")...
Framework: BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe.
Framework: BrowserRemoted.AsyncListenerThreadEntry() : Not connected; this will now wait indefinitely for a pipe client connection...
Framework: BrowserRemoted.AsyncListenerThreadEntry() : A new client has connected to the pipe.
Framework: BrowserRemoted.AsyncListenerThreadEntry() : Now waiting indefinitely for a command from the pipe client...
Framework: Manager.AddNewBrowser() : Added client ID "Client_1885d027-9d71-4b68-9cca-1d31717109c9" (now there is/are 1 total).
Framework: Connector.InjectCode() : Returned from sending WM_COPYDATA (LRESULT=0, GetLastError()=DS_S_SUCCESS).
Uncategorized: Connector.InjectCode() : ------- Function End -------
Framework: Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
Framework: Manager.SetActiveBrowser() : Active browser is now null.
Framework: Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
0
Jamie
Top achievements
Rank 2
answered on 30 Aug 2011, 07:39 PM
Exported my Test Studio project to Visual Studio and it still fails.  Attached Visual Studio project.  And my sample html page (iisstart.htm) in the zip file.  I hope this helps in duplicating the issue, thanks.
0
Cody
Telerik team
answered on 31 Aug 2011, 04:32 AM
Hi Jamie,

Thank you for the excellent details and repro of this problem. I have managed to reproduce it. I have logged the bug here. I have also updated the Telerik Points for your account for such a well done report.

All the best,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
Jamie
Top achievements
Rank 2
answered on 31 Aug 2011, 04:20 PM
I need to know what I can do in the meantime?  When this was working for me, I was using the Telerik Testing Framework Free Edition for 2011.1.502.  Upgrading to the Telerik Testing Framework Free Edition for 2011.1.712 caused the problem so I just rolled back to the 502 version.  Now that we purchased Test Studio from you, we downloaded the latest release which is the 2011.1.712 edition.  I cannot run or demo my tests to my manager or the innovation team what I have accomplished for the application with the popup window.  I am suppose to have meeting very soon to demonstrate my progress on the 50+ tests I have created using your framework.  Now they do not work because of this issue.

Is there a way I can get the 502 purchase version of Test Studio and Test Studio Run-Time so I can setup my environment back to when most of my tests were working?  This issue a major show-stopper for me and my goals on developing automated tests.
0
Cody
Telerik team
answered on 31 Aug 2011, 05:42 PM
Hi Jamie,

Here is a link to the installer for Test Studio 2011.1.502. I will email you a private link to download Test Studio Run-Time.

Greetings,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
Jamie
Top achievements
Rank 2
answered on 01 Sep 2011, 02:07 PM
Cody, I still have not received the email with the private link to download the 2011.1.502 Test Studio Run-time, thanks.
0
Cody
Telerik team
answered on 01 Sep 2011, 03:21 PM
Hello Jamie,

I apologize for my error. I missed a letter in your email address when I sent it. I am sending a new one to the correct email address.

Best wishes,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
Jamie
Top achievements
Rank 2
answered on 01 Sep 2011, 03:38 PM
No problem, it happens.  I got the email was able to get the downloads, thanks.
Tags
General Discussions
Asked by
Jamie
Top achievements
Rank 2
Answers by
Jamie
Top achievements
Rank 2
Cody
Telerik team
Share this question
or