Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Team Test API
Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace

The Microsoft.VisualStudio.TestTools.WebTesting.Rules namespace contains a set of rules used by Web tests to test Web pages. These rules provide Web tests a set of tools to test the content of Web pages. Additionally, custom rules can be created to extend the functionality of Web tests. Rules are identified by two categories: extraction rules and validation rules. Extraction rules find content in Web pages and adds the information to the context which can be passed to future requests. Validation rules test for the existence of content.

  ClassDescription
ms244169.pubclass(en-us,VS.90).gifExtractAttributeValue Extract the value of an attribute from a specified HTML tag.
ms244169.pubclass(en-us,VS.90).gifExtractFormField Extracts the value of a form field attribute and adds it to the WebTestContext.
ms244169.pubclass(en-us,VS.90).gifExtractHiddenFields Extracts all hidden fields from the response and adds each value to the context.
ms244169.pubclass(en-us,VS.90).gifExtractHttpHeader Used to extract an HTTP header value from the response and place the value of the header into the WebTestContext.
ms244169.pubclass(en-us,VS.90).gifExtractRegularExpression Extracts text from the response that matches the regular expression pattern.
ms244169.pubclass(en-us,VS.90).gifExtractText Extract text from the HtmlDocument based on delimiting start/end strings, matching regular expressions, and the occurrence of the text. The extracted text is added to the WebTestContext.
ms244169.pubclass(en-us,VS.90).gifValidateFormField Validates the name and value of a form field attribute.
ms244169.pubclass(en-us,VS.90).gifValidateResponseUrl A validation rule validates that a redirect occurs during the run of the Web test if and only if the redirect was expected.
ms244169.pubclass(en-us,VS.90).gifValidationRuleFindText Validates that the specified text exists or does not exist in the text response.
ms244169.pubclass(en-us,VS.90).gifValidationRuleRequestTime Validates that the response for a request is returned within the specified period of time.
ms244169.pubclass(en-us,VS.90).gifValidationRuleRequiredAttributeValue Validates that the HtmlDocument provided by the response contains a tag that includes an attribute that has a specified value.
ms244169.pubclass(en-us,VS.90).gifValidationRuleRequiredTag Validates the existence of a specified tag in the response.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker