Capturing HTTP traffic in Fiddler while using TestDriven.NET

4.1k views Asked by At

I've been writing some unit tests that use a web service to retrieve information from the web. When I run my 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?

2

There are 2 answers

1
Anthony Shaw On BEST ANSWER

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.

3
EricLaw On