Better HTML parsing and validation with HtmlAgilityPack

Let’s face it; sometimes the Microsoft.VisualStudio.TestTools.WebTesting.HtmlDocument class just doesn’t cut it when you’re writing custom extraction and validation code.  HtmlDocument was originally designed as an internal class to very efficiently parse URLs for dependent requests (such as images) out of HTML response bodies.  Before VS 2005 RTM, we made HtmlDocument part of the public WebTestFramework API, but scheduling and resource…


Check and modify the status of extraction or validation rules

The following came up on our internal discussion list today.  A user wanted to run an extraction rule and execute some different requests based on whether the rule succeeded or not.  The problem is that a failed extraction rule normally causes the web test to fail.  Fortunately, there’s an easy way to check the success status of the rule,…


Can I call a web test from a web test?

I’ve seen this question come up several times recently, so I’m going to try to provide the full answer here.  Let me start by saying that we have some significant changes in the pipeline that will make calling a web test from another web test a fully supported feature in a future release.  Until then,…


So you want to replay an IIS web server log?

A few months ago, a group in Microsoft wanted to be able to play back a large IIS log as a Visual Studio web test.  They started off with a converter that converted the IIS log into a gigantic coded web test.  The 118MB .cs file that resulted was a bit ridiculous and didn’t perform very well…


Why can’t I generate more load?

A common question we get goes something like this: “I’m running a 100 user load test and getting X RPS (requests per second).  When I add 500 more users, I’m still getting X RPS.  What’s wrong?” Here’s a list of some things to check when you’re not able to generate the load you expected: Is your…


More load test bloggers

Ed Glas and Sean Lumley are now also blogging about the web/load testing tools in Visual Studio Team System.  Ed has several good posts up already.


Bill Barnett, load test blogger

Bill Barnett, another member of the “Ocracoke” team (VS Team System’s Web and Loading tools), is now blogging.  Take a look at the Advanced Load Testing Features article he posted.

Web Test Authoring and Debugging Techniques

My whitepaper titled Web Test Authoring and Debugging Techniques is now live on MSDN!  It covers some best practices for creating web tests as well a lot of things to look for when things don’t go the way you expected. Please let me know what you think or if you have any questions.


Custom ExtractionRule to extract form fields by index

*This is the third post in a series about web test extensibility points.  The first post was about extending web tests using custom IHttpBody classes and the second post was about a custom ValidationRule to catch redirects to error pages.* The ExtractHiddenFields rule that is present in most web tests works by extracting every hidden field on a page into…


VSTS Dev & Test Tools MSDN Public Chat – Wed 10/19 @ 1pm EDT

Team System MSDN Public Chat Visual Studio Team Edition for Software Developer & Visual Studio Team Edition for Software Testers When: Wednesday, November 16th @ 10am PST What: Join us to discuss the Profiler, Test Tools (Unit, Generic, Manual), Web & Load Testing, and Code Analysis (FxCop & PREFast). We have questions for you, will…