O'Reilly logo

Software Testing using Visual Studio 2010 by S. Subashni, N. Satheesh Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Custom rules

When we generate the code for the recorded Web Performance Test, Visual Studio creates the code for the rules that we added for the recorded test. However if we need more custom rules to be added to the Web Performance Test, we can use the Microsoft.VisualStudio.TestTools.WebTesting namespace and create a new rule class which derives from the base class. This new class can be part of the managed class library which can be a plug-in. This can be an extraction rule or a validation rule.

Extraction rule

The extraction rules are used for extracting data from the responses received for the web requests. Data can be extracted from text fields, headers, form fields, attributes, or hidden fields. The new custom extraction rule is a new class ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required