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.