Question

I use HttpWebRequests pretty extensively - I've found that the Visual Studio Web Test classes (i.e. WebTestRequest and WebTestResponse etc) offer a lot of really nice methods that i'd love to start using.

But I can't seem to find a way to use these classes outside of the Visual Studio's testing framework. Has anyone done this?

Was it helpful?

Solution

Will, WebTestRequest and WebTestResponse aren't designed to be used like HttpWebRequest and HttpWebResponse. They're mostly containers for passing various request and response data into and out of the web/load test engine in Visual Studio or MSTest.

I wrote both of the classes and even I find myself wishing I could use them for other purposes :) I've definitely had to reinvent similar querystring parameter parsing logic for other projects since then.

Josh

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top