Event ordering in Web Tests

Web tests have a number of extensibility points before and after a request. What order do they run in? The hooks are: WebTestPlugin.PreRequest WebTestRequestPlugin.PreRequest ExtractionRule.Extract ValidationRule.Validate Here is a sequence diagram that shows what order things fire:   There is no guaranteed order of firing for WebTestPlugin.PreRequest and RequestPlugin.PreRequest. Also if you have >1 Extraction…

5

New templates for plugins and rules

Inspired by templates developed by Dennis Bass of the services test labs, I added new item templates to the codeplex.com\TeamTestPlugins project. If you install these on your machine it makes creating new plugins much easier: If you work with web and load tests you’ll find these very handy, and they are xcopy-installed on your machine…

2

Catching errors as they happen: WebTest ValidateResponseUrl

In VS 2008, we added a new Validation Rule ValidateResponseUrl. In VS 2005, a very common problem was that a page would redirect to the error page, but the web test engine did not automatically recognize this as an error. Then downstream in the playback another page would fail, usually with “hidden field blah not…

2