AddBeforeResponseListener - Pipe is broken

12 posts, 0 answers
  1. Peter
    Peter avatar
    1 posts
    Member since:
    Nov 2010

    Posted 12 Jul 2011 Link to this post

    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!
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 18 Jul 2011 Link to this post

    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?
  3. Peter
    Peter avatar
    1 posts
    Member since:
    Nov 2010

    Posted 29 Jul 2011 Link to this post

    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
  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 03 Aug 2011 Link to this post

    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?
  5. Peter
    Peter avatar
    1 posts
    Member since:
    Nov 2010

    Posted 03 Aug 2011 Link to this post

    Cody,
    I have 3.5.1 installed, the same as in your screenshot.

    I'm using VS2010 ultimate.
  6. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 03 Aug 2011 Link to this post

    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?
  7. Peter
    Peter avatar
    1 posts
    Member since:
    Nov 2010

    Posted 04 Aug 2011 Link to this post

    Cody, I'm Eastern Time (GMT -5).  So any time today that you are ready, let me know, and we'll make arrangements.
  8. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 05 Aug 2011 Link to this post

    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!
  9. Peter
    Peter avatar
    1 posts
    Member since:
    Nov 2010

    Posted 10 Aug 2011 Link to this post

    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.

  10. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 10 Aug 2011 Link to this post

    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!
  11. Peter
    Peter avatar
    1 posts
    Member since:
    Nov 2010

    Posted 16 Aug 2011 Link to this post

    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.
  12. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 16 Aug 2011 Link to this post

    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!
Back to Top