[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
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?
Cody
the Telerik team
Have you looked at the new Online User Guide for Telerik Test Studio?
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);
- 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
Which version of Visual Studio are you using? Is .NET 3.5.1 installed (see attached screenshot)?
Kind regards,Cody
the Telerik team
Have you looked at the new Online User Guide for Telerik Test Studio?
I have 3.5.1 installed, the same as in your screenshot.
I'm using VS2010 ultimate.
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
Have you looked at the new Online User Guide for Telerik Test Studio?
We will continue working this problem via email.
All the best,Cody
the Telerik team
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.
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
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.
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.
Cody
the Telerik team