Bagikan melalui


Using Validation and Extraction Rules

Validation rules help verify that a Web application is working correctly by validating the existence of text, tags, or attributes on the page returned by a Web request. Validation rules can also verify the time it takes a request to finish, and the existence of form fields and their values.

Extraction rules help verify that a Web application is working correctly by extracting data from the responses to Web requests. Extraction rules store results in the test context as name value pairs. Extraction rules can extract form fields, text, attributes, headers, regular expressions, and hidden fields.

The topics in this section describe how to create and use validation and extraction rules in Web tests.

In This Section

Reference

ValidationRule

Microsoft.VisualStudio.TestTools.WebTesting.Rules

ExtractionRule

Understanding Web Tests

Advanced Web Test Tasks

See Also

Concepts

About Validation Rules

About Extraction Rules