Capturing HTTP traffic in Fiddler while using TestDriven.NET
I've been writing some unit tests that use a web service to retrieve information from the web. When I run m开发者_如何学Pythony code from a console application, I can monitor the calls via Fiddler and see what's being requested and the server response.
When I make these same service calls by running a unit test with TestDriven.NET, the calls are not shown in the calls through Fiddler.
Does anybody what I would have to do to configure this, so that I can monitor the calls with Fiddler while running unit tests?
You need to set the proxy config. It looks like this: http://gurustop.net/blog/2010/08/10/visual-studio-2010-extension-manager-online-gallery-behind-internet-proxy/ has a suggestion for how to do that. See http://www.fiddler2.com/fiddler/help/hookup.asp#Q-DotNet for more.
I found that when I configured my test application (the console app) and my unit tests, that I configured one using SSL and one not. By default, Fiddler does not decode or list HTTPS traffic. I simply had to enable this feature and it started working great.
精彩评论