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

AddBeforeResponseListener - Pipe is broken

11 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 12 Jul 2011, 06:48 PM
I'm running into an issue when trying to run a sample on my Win 7 x64 environment.  I'm attempting to run this sample:

[TestMethod]
[Description("Detect images as they arrive from the web server")]
public void ImageDetection()
{
    Manager.Settings.Web.UseHttpProxy = true;
    Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
 
    ResponseListenerInfo li = new ResponseListenerInfo(CheckTypeForImage);
 
    Manager.Http.AddBeforeResponseListener(li);
    ActiveBrowser.NavigateTo("http://news.google.com/");
    Manager.Http.RemoveBeforeResponseListener(li);
 
    // Check the test results for a log of all responses during the page load
}

when I hit the line Manager.Http.AddBeforeResponseListener(li); I get this exception:

System.IO.IOException was unhandled by user code
  Message=Pipe is broken.
  Source=System.Core
  StackTrace:
       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.Http.HttpProxyManager.AddBeforeResponseListener(ResponseListenerInfo info)
       at QuickStarts_VSTS_CS.WebAii2Samples.ImageDetection() in C:\Program Files (x86)\Telerik\Testing Framework 2011.1\Samples\Testing Framework\QuickStarts_VSTS_CS\Tests\WebAii2Samples.cs:line 169
  InnerException:

If I run this same sample on my Win 7 x86 VM, it works fine.  Any ideas on what I have to do to get it to work in my x64 environment?

I'm running version 2011.1.712.0.

Thanks!

11 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 18 Jul 2011, 04:29 PM
Hello Peter,

I apologize for the delay responding to you. I am also sorry that you are running into this problem. I just retesting this using 2011.1 712 and IE 9 on my Win 7 x64 machine. Which version of IE are you using? Do you normally need to use a Proxy to connect to the Internet?

The error message implies that our HTTPProxy.exe application crashed while the test was trying to run. if you set a breakpoint on the line that crashes, can you see "ArtOfTest.WebAii.HttpProxy.exe" running in Task Manager? Are there any errors logged in Windows Event log relating to ArtOfTest.WebAii.HttpProxy.exe?

Kind regards,
Cody
the Telerik team
Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

Have you looked at the new Online User Guide for Telerik Test Studio?
0
Peter
Top achievements
Rank 1
answered on 29 Jul 2011, 01:53 PM
Sorry for the delay, I had to put this problem on hold for a little while.

Anyways, to answer your questions:
- I'm using IE 8
- I see ArtOfTest.WebAii.HttpProxy.exe appear in task manager, however, after the line:
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
it's disappears from task manager.
- Nothing specially related to httpproxy.exe, but this event was raised about the same time I ran the test:
The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
 
If the event originated on another computer, the display information had to be saved with the event.
 
The following information was included with the event:
 
(devenv.exe, PID 6564, Thread 55) OutOfProcessStrategy.ProcessMonitorThread: Agent process was shut down unexpectedly; will attempt to restart
 
the message resource is present but the message is not found in the string/message table

Thanks for your help
0
Cody
Telerik team
answered on 03 Aug 2011, 04:04 PM
Hello Peter,

Which version of Visual Studio are you using? Is .NET 3.5.1 installed (see attached screenshot)?

Kind regards,
Cody
the Telerik team
Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

Have you looked at the new Online User Guide for Telerik Test Studio?
0
Peter
Top achievements
Rank 1
answered on 03 Aug 2011, 04:33 PM
Cody,
I have 3.5.1 installed, the same as in your screenshot.

I'm using VS2010 ultimate.
0
Cody
Telerik team
answered on 03 Aug 2011, 07:52 PM
Hello Peter,

I'd like to look at this problem on your computer via GoToMeeting. Let me know what time zone you are in and your availability and I'll setup the meeting. I'm in Austin, TX which is Central Time (GMT -6).

Best wishes,
Cody
the Telerik team
Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

Have you looked at the new Online User Guide for Telerik Test Studio?
0
Peter
Top achievements
Rank 1
answered on 04 Aug 2011, 02:53 PM
Cody, I'm Eastern Time (GMT -5).  So any time today that you are ready, let me know, and we'll make arrangements.
0
Cody
Telerik team
answered on 05 Aug 2011, 04:56 PM
Hi Peter,

We will continue working this problem via email.

All the best,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
Peter
Top achievements
Rank 1
answered on 10 Aug 2011, 04:44 PM
Thanks for all the help Cody.

It turns out that the problem was because my Internet Explorer wasn't set to auto-detect any proxy servers.  Once I changed that to "Automatically detect settings" everything started working.

0
Cody
Telerik team
answered on 10 Aug 2011, 05:09 PM
Hello Peter,

First I am very glad we were able to resolve the issue. One question though, what were your settings before you changed it? We want to be able to reproduce the crash so we can update our code to handle it better. Maybe you can send a screen shot what it looked like when it was crashing?

Regards,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
Peter
Top achievements
Rank 1
answered on 16 Aug 2011, 02:51 PM
Sure Cody, I've attached a screenshot of what my LAN settings looked like while this issue was happening.

By un-checking "Use a proxy server for your LAN", and checking "Automatically detect settings" solved my issue!  Let me know if you need any other information from me, to try to reproduce this issue.
0
Cody
Telerik team
answered on 16 Aug 2011, 03:29 PM
Hi Peter,

Thank you for the additional information. I am closing this issue as fully resolved:
- You correcting the proxy settings eliminated the problem
- We changed our code to be more immune to invalid proxy settings. This fix will be included in our next major release.

Regards,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Cody
Telerik team
Peter
Top achievements
Rank 1
Share this question
or