Microsoft.VisualStudio.TestTools.WebTesting Namespace
The Microsoft.VisualStudio.TestTools.WebTesting namespace supplies classes that enable Web testing. This namespace includes the WebTest class which is the base class for all Web tests. The WebTestRequest and WebTestResponse classes simulate the HTTP requests and responses of the Web pages under test. These classes use the FormPostHttpBody class to simulate the use of form post parameters. Microsoft.VisualStudio.TestTools.WebTesting also includes classes for data binding, test rules, identifying work items, query strings, HTTP context, and plug-ins that provide testing features.
Classes
Class | Description | |
---|---|---|
Comment | Represents a comment that the test designer adds to a Web test. | |
ConnectionFailedWebTestException | An exception that is thrown by the test engine for connection failure errors during a Web test. | |
ContextParameter | ||
ContextParameterCollection | ||
CssIterationAttribute | Represents the project iteration to which this test corresponds. This class cannot be inherited. | |
CssProjectStructureAttribute | Represents the node in the team project hierarchy to which this test corresponds. | |
DataBindingAttribute | Contains information that defines data binding properties for a Web test. This class cannot be inherited. | |
DataSource | Defines a data source for a Web test. | |
DataSourceAttribute | Contains information that describes a data source for a Web test. This class cannot be inherited. | |
DataSourceCollection | ||
DataSourceTable | An object that represents a table in a data source that you can use in a Web test. | |
DataSourceTableCollection | ||
DeclarativeWebTest | Represents a declarative, XML-based Web test. | |
DeclarativeWebTestSerializer | Loads the contents of a .webtest file into an instance of the DeclarativeWebTest class. | |
DeploymentItemAttribute | Used to specify deployment items such as a file or directory for per-test-deployment. This class cannot be inherited. | |
ExtractionEventArgs | Provides data for the ExtractValues event. | |
ExtractionRule | Base class used to define rules for obtaining data from a Web response that is generated by a Web test. | |
ExtractionRuleReference | ||
ExtractionRuleReferenceCollection | ||
FileUploadParameter | Represents a file upload form post parameter. | |
FormPostHttpBody | Represents an HTML form post body with a collection of form parameters. | |
FormPostParameter | Represents an HTML form POST parameter. | |
FormPostParameterCollection | Represents a strongly typed container for form post parameters. | |
HtmlAttribute | Represents an HTML attribute. | |
HtmlAttributeWithOffsets | Extends the basic HtmlAttribute and tracks the beginning and ending offsets within an HTML document. | |
HtmlDocument | Provides access to the set of HTML tags in an HTML response body. | |
HtmlTag | The HtmlTag object is the foundation of the HTML document and holds the parsed structure of the document. | |
HtmlTagWithOffsets | Extends the basic HtmlTag by tracking the beginning and ending tag offsets within the HTML document. | |
IncludeCodedWebTestAttribute | Contains information that defines a coded Web test that is included in another Web test. | |
IncludeDeclarativeWebTestAttribute | Contains information that defines a coded Web test that is included in another Web test. | |
IncludedWebTest | Represents a Web test that is included in another Web test. | |
OwnerAttribute | Used to specify the person responsible for maintaining, running, and/or debugging the test. This class cannot be inherited. | |
Parameter | Represents an HTTP parameter base class. | |
PluginOrRuleProperty | A parameter provided to an extraction rule, validation rule, or plug-in. | |
PostPageEventArgs | ||
PostRequestEventArgs | Provides data for the WebTestRequest.PostRequest and WebTest.PostRequest events. | |
PostTransactionEventArgs | ||
PostWebTestEventArgs | Provides data for the PostWebTest event. | |
PrePageEventArgs | ||
PreRequestEventArgs | Provides data for the WebTest.PreRequest event. | |
PreTransactionEventArgs | ||
PreWebTestEventArgs | Provides data for the PreWebTest event. | |
PriorityAttribute | Used to specify the priority of a unit test. This class cannot be inherited. | |
PropertyCollection | Represents a strongly typed container for Web test rule properties. | |
QueryStringParameter | Represents an HTTP querystring parameter. | |
QueryStringParameterCollection | Represents a strongly typed container for query string parameters. | |
StringHttpBody | Represents an HTTP body in string form used for SOAP support. | |
TestDescriptionAttribute | Used to specify the description of the test. This class cannot be inherited. | |
ThreadedWebTest | Represents a base class for a coded Web test that uses a single thread per Web test iteration. | |
TimeoutAttribute | Use this attribute to specify the time-out period of a Web test. | |
TransactionTimer | ||
ValidationEventArgs | Provides data for the ValidateResponse event. | |
ValidationRule | Verifies that requests return valid HTTP responses and that the contents of the response match the expected results. This class must be inherited. | |
ValidationRuleReference | ||
ValidationRuleReferenceCollection | Represents a serializable, strongly typed container for Web test validation rules. | |
WebTest | Base class for all Web tests. Coded Web tests that are written in C# derive directly from this class. | |
WebTestBaseCollection<T> | ||
WebTestContext | Represents the context available to a WebTest. | |
WebTestEmptyTableException | Represents a WebTestEndOfDataException. | |
WebTestEndOfDataException | The exception that is thrown when data binding is being performed on a table with the UniqueDataBindingAccessMethod when there are no more rows of data in the table. | |
WebTestException | The exception that is thrown by the test engine for errors that occur while a test is running. | |
WebTestItem | Base class for WebTestRequest. | |
WebTestItemCollection | Represents a strongly typed container for Web test items. | |
WebTestPageStatistics | Contains statistics regarding the execution of the page. | |
WebTestPlugin | Provides a means to run code and access a WebTest before and after the Web test is run. This class must be inherited. | |
WebTestPluginReference | ||
WebTestPluginReferenceCollection | Represents a serializable strongly typed container for Web test plug-in references. | |
WebTestRequest | Represents an HTTP request that will be sent to a Web server. | |
WebTestRequestCollection | A serializable, strongly typed container for Web test request headers. | |
WebTestRequestHeader | Represents an HTTP header. | |
WebTestRequestHeaderCollection | A serializable strongly typed container for Web test request headers. | |
WebTestRequestPlugin | Receives notifications before and after a request is processed. | |
WebTestRequestPluginConverter | ||
WebTestRequestPluginReference | ||
WebTestRequestPluginReferenceCollection | Represents a strongly typed container for Web test request plug-in references. | |
WebTestRequestStatistics | Used to track key information that is gathered when the request is run. | |
WebTestResponse | Represents an HTTP response. | |
WebTestRuleBase | ||
WorkItemAttribute | Use this attribute to specify a work item that is associated with a test. |
Interfaces
Interface | Description | |
---|---|---|
IHttpBody | Provides a common interface for accessing an HTTP body. |
Enumerations
Enumeration | Description | |
---|---|---|
DataBindingAccessMethod | Enumeration for the access method that is used for data binding. | |
Outcome | ||
ValidationLevel | Used to identify the importance of a validation rule that is run in a load test. | |
WebTestExecutionInstruction | Used to denote how to handle an operation. |
See Also
Reference
Other Resources
Running and Viewing a Web Test
How to: Run a Web Test from the Command Line
How to: Create a Coded Web Test
Walkthrough: Recording and Running a Web Test