Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Microsoft.VisualStudio.TestTools.WebTesting Namespace

 

The Microsoft.VisualStudio.TestTools.WebTesting namespace supplies classes that enable Web performance testing. This namespace includes the WebTest class which is the base class for all Web performance 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.

ClassDescription
System_CAPS_pubclassAlwaysExecuteRecorderPluginAttribute

Attribute to indicate that the recorder plug-in should always be executed.

System_CAPS_pubclassBaseEnumStringConverter<T>

Helper class that helps with conversions between enum values and strings.

System_CAPS_pubclassBinaryHttpBody

Represents an HTTP body that contains binary data.

System_CAPS_pubclassCodedWebTestAttribute

System_CAPS_pubclassComment

Represents a comment that the test designer adds to a Web performance test.

System_CAPS_pubclassConditionalEventArgs

Represents the event arguments that are used for conditional loops and statements.

System_CAPS_pubclassConditionalRule

Condition rules are executed in a conditional loop or statement. These rules are intended to decide whether the body of the loop or statement must be executed.

System_CAPS_pubclassConditionalRuleException

Represents the exception that is thrown when an exception occurs during execution of any one of the three methods of a conditional rule.

System_CAPS_pubclassConditionalRuleReference

Base class for a reference to a particular conditional rule.

System_CAPS_pubclassConditionalRuleReferenceCollection

Represents a strongly typed container for Web-test conditional rule references.

System_CAPS_pubclassConditionConditionalRuleReference

Represents a reference to a conditional rule that will be used in a condition.

System_CAPS_pubclassConnectionFailedWebTestException

No content here will be updated; please do not add material here.

System_CAPS_pubclassContextParameter

Represents a single parameter in the Web performance testing context that has a name and value.

System_CAPS_pubclassContextParameterCollection

Contains a strongly typed collection of ContextParameter objects.

System_CAPS_pubclassCssIterationAttribute

Represents the project iteration to which this test corresponds. This class cannot be inherited.

System_CAPS_pubclassCssProjectStructureAttribute

Represents the node in the team project hierarchy to which this test corresponds.

System_CAPS_pubclassDataBindingAttribute

Contains information that defines data binding properties for a Web performance test. This class cannot be inherited.

System_CAPS_pubclassDataSource

Defines a data source for a Web performance test.

System_CAPS_pubclassDataSourceAttribute

Contains information that describes a data source for a Web performance test. This class cannot be inherited.

System_CAPS_pubclassDataSourceCollection

Contains a strongly typed collection of DataSourceCollection objects.

System_CAPS_pubclassDataSourceTable

An object that represents a table in a data source that you can use in a Web performance test.

System_CAPS_pubclassDataSourceTableCollection

Contains a strongly typed collection of DataSourceTableCollection objects.

System_CAPS_pubclassDeclarativeWebTest

Represents a declarative, XML-based Web performance test.

System_CAPS_pubclassDeclarativeWebTestSerializer

Loads the contents of a .webtest file into an instance of the DeclarativeWebTest class.

System_CAPS_pubclassDeploymentItemAttribute

Used to specify deployment items such as a file or directory for per-test-deployment. This class cannot be inherited.

System_CAPS_pubclassExtractHtmlSelectTag

Represents a rule that is used to extract the selected option from an HTML select tag.

System_CAPS_pubclassExtractHtmlTagInnerText

Represents a rule that is used to extract the inner text from an HTML tag.

System_CAPS_pubclassExtractionEventArgs

Provides data for the ExtractValues event.

System_CAPS_pubclassExtractionRule

Base class used to define rules for obtaining data from a Web response that is generated by a Web performance test.

System_CAPS_pubclassExtractionRuleReference

The ExtractionRuleReference class encapsulates the metadata about an ExtractionRule and the parameter values to use when an instance of the ExtractionRule is created when the Web performance test that uses the ExtractionRule is run.

System_CAPS_pubclassExtractionRuleReferenceCollection

Contains a strongly typed collection of ExtractionRuleReferenceCollection objects.

System_CAPS_pubclassFileUploadParameter

No content here will be updated; please do not add material here.

System_CAPS_pubclassForLoopComparisonOperatorConverter

Helper class that helps with conversions between enum values and strings.

System_CAPS_pubclassFormPostHttpBody

Represents an HTML form post body with a collection of form parameters.

System_CAPS_pubclassFormPostParameter

Represents an HTML form POST parameter.

System_CAPS_pubclassFormPostParameterCollection

Represents a strongly typed container for form post parameters.

System_CAPS_pubclassHtmlAttribute

Represents an HTML attribute.

System_CAPS_pubclassHtmlAttributeWithOffsets

Extends the basic HtmlAttribute and tracks the beginning and ending offsets within an HTML document.

System_CAPS_pubclassHtmlDocument

Provides access to the set of HTML tags in an HTML response body.

System_CAPS_pubclassHtmlTag

The HtmlTag object is the foundation of the HTML document and holds the parsed structure of the document.

System_CAPS_pubclassHtmlTagInnerText

Represents the inner text of an HTML tag, and contains the beginning and ending offset of the inner text location in the whole document.

System_CAPS_pubclassHtmlTagInnerTextParser

A specialized parser that is used to extract the inner text from HTML tags that are located in an HTML document.

System_CAPS_pubclassHtmlTagWithOffsets

Extends the basic HtmlTag by tracking the beginning and ending tag offsets within the HTML document.

System_CAPS_pubclassIncludeCodedWebTestAttribute

Contains information that defines a coded Web performance test that is included in another Web performance test.

System_CAPS_pubclassIncludeDeclarativeWebTestAttribute

Contains information that defines a coded Web performance test that is included in another Web performance test. This class cannot be inherited.

System_CAPS_pubclassIncludedWebTest

Represents a Web performance test that is included in another Web performance test.

System_CAPS_pubclassLoopConditionalRuleReference

Class to contain a reference to a particular conditional rule that will be used in a loop.

System_CAPS_pubclassNumericalComparisonOperatorConverter

Helper class that helps with conversions between enum values and strings.

System_CAPS_pubclassOutcomeConverter

Helper class that helps with conversions between enum values and strings.

System_CAPS_pubclassOwnerAttribute

Used to specify the person responsible for maintaining, running, and/or debugging the test. This class cannot be inherited.

System_CAPS_pubclassParameter

Represents an HTTP parameter base class.

System_CAPS_pubclassPluginOrRuleProperty

Represents the name and value of a single property for a rule or a plug-in.

System_CAPS_pubclassPostPageEventArgs

Provides data for the WebTest.PostPage event.

System_CAPS_pubclassPostRequestEventArgs

Provides data for the WebTestRequest.PostRequest and WebTest.PostRequest events.

System_CAPS_pubclassPostTransactionEventArgs

Provides data for the WebTest.PostTransaction event.

System_CAPS_pubclassPostWebTestEventArgs

Provides data for the WebTest.PostWebTest event.

System_CAPS_pubclassPostWebTestRecordingEventArgs

No content here will be updated; please do not add material here.

System_CAPS_pubclassPrePageEventArgs

Provides data for the WebTest.PrePage event.

System_CAPS_pubclassPreRequestDataBindingEventArgs

System_CAPS_pubclassPreRequestEventArgs

Provides data for the WebTest.PreRequest event.

System_CAPS_pubclassPreTransactionEventArgs

Provides data for the WebTest.PreTransaction event.

System_CAPS_pubclassPreWebTestEventArgs

Provides data for the WebTest.PreWebTest event.

System_CAPS_pubclassPriorityAttribute

Used to specify the priority of a unit test. This class cannot be inherited.

System_CAPS_pubclassPropertyCollection

Represents a strongly typed container for Web performance test rule properties.

System_CAPS_pubclassQueryStringParameter

Represents an HTTP querystring parameter.

System_CAPS_pubclassQueryStringParameterCollection

Represents a strongly typed container for query string parameters.

System_CAPS_pubclassRequestBodyEditorPluginReference

Represents a plug-in for an HTTP request object.

System_CAPS_pubclassSharepointInformation

System_CAPS_pubclassStringComparisonOperatorConverter

Helper class that helps with conversions between enum values and strings.

System_CAPS_pubclassStringHttpBody

Represents an HTTP body in string form used for SOAP support.

System_CAPS_pubclassTestDescriptionAttribute

Used to specify the description of the test. This class cannot be inherited.

System_CAPS_pubclassThreadedWebTest

Represents a base class for a coded Web performance test that uses a single thread per Web performance test iteration.

System_CAPS_pubclassTimeoutAttribute

Use this attribute to specify the time-out period of a Web performance test.

System_CAPS_pubclassTransactionTimer

Represents a timed transaction in a Web performance test. This part of the Web performance test may include Web performance test requests, calls to included Web performance tests, or other Web performance test transactions.

System_CAPS_pubclassValidationEventArgs

Provides data for the ValidateResponse event.

System_CAPS_pubclassValidationRule

Verifies that requests return valid HTTP responses and that the contents of the response match the expected results. This class must be inherited.

System_CAPS_pubclassValidationRuleReference

The ValidationRuleReference class encapsulates the metadata about an ValidationRule and the parameter values to use when an instance of the ValidationRule is created when the Web performance test that uses the ValidationRule is run.

System_CAPS_pubclassValidationRuleReferenceCollection

Represents a serializable, strongly typed container for Web performance test validation rules.

System_CAPS_pubclassWebTest

No content here will be updated; please do not add material here.

System_CAPS_pubclassWebTestBaseCollection<T>

An abstract base class that is used to store a variety of Web performance tests.

System_CAPS_pubclassWebTestCondition

This class represents the conditional statement constructs. It contains a collection of Web performance test items that are executed when the conditional rule is met.

System_CAPS_pubclassWebTestConditionalConstruct

Base class for the conditional loop and the conditional statement constructs.

System_CAPS_pubclassWebTestContext

Represents the context available to a WebTest.

System_CAPS_pubclassWebTestCorrelationResult

Class to contain the result of a correlation that is applied when a Web performance test is executed in correlation mode.

System_CAPS_pubclassWebTestEmptyTableException

Represents an Exception that occurs when data binding is being performed on an empty table.

System_CAPS_pubclassWebTestEndOfDataException

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.

System_CAPS_pubclassWebTestError

Class to encapsulate errors that occur during Web performance test execution.

System_CAPS_pubclassWebTestException

The exception that is thrown by the test engine for errors that occur while a test is running.

System_CAPS_pubclassWebTestItem

Represents a base class for WebTestRequest.

System_CAPS_pubclassWebTestItemCollection

Represents a strongly typed container for Web performance test items.

System_CAPS_pubclassWebTestLoop

Represents a conditional loop that contains a collection of Web performance test items that are executed as long as the conditional rule is met.

System_CAPS_pubclassWebTestPageStatistics

Contains statistics about the execution of the page.

System_CAPS_pubclassWebTestPlugin

Provides a means to run code and access a WebTest before and after the Web performance test is run. This class must be inherited.

System_CAPS_pubclassWebTestPluginReference

The WebTestPluginReference class encapsulates the metadata about a WebTestRequestPlugin and the parameter values to use when an instance of the WebTestRequestPlugin is created when the Web performance test that uses the WebTestRequestPlugin is run.

System_CAPS_pubclassWebTestPluginReferenceCollection

Represents a serializable strongly typed container for Web performance test plug-in references.

System_CAPS_pubclassWebTestRecorderPlugin

Plug-in interface for a Web performance test recorder.

System_CAPS_pubclassWebTestRecorderPluginReference

Represents a Web performance test rule for a reference to an executable plug-in.

System_CAPS_pubclassWebTestRecorderUtilities

Provides methods to parse requests. This class cannot be inherited.

System_CAPS_pubclassWebTestRequest

No content here will be updated; please do not add material here.

System_CAPS_pubclassWebTestRequestCollection

A strongly typed container for Web performance test request headers.

System_CAPS_pubclassWebTestRequestHeader

Represents an HTTP header.

System_CAPS_pubclassWebTestRequestHeaderCollection

A serializable strongly typed container for Web performance test request headers.

System_CAPS_pubclassWebTestRequestPlugin

Receives notifications before and after a request is processed.

System_CAPS_pubclassWebTestRequestPluginConverter

Class to convert webtests from Visual Studio 2005. Not intended for use by user written code.

System_CAPS_pubclassWebTestRequestPluginReference

The WebTestRequestPluginReference class encapsulates the metadata about a WebTestRequestPlugin and the parameter values to use when an instance of the WebTestRequestPlugin is created when the Web performance test that uses the WebTestRequestPlugin is run.

System_CAPS_pubclassWebTestRequestPluginReferenceCollection

Represents a strongly typed container for Web performance test request plug-in references.

System_CAPS_pubclassWebTestRequestResult

Class to contain all result information for a completed Web performance test request.

System_CAPS_pubclassWebTestRequestStatistics

Used to track key information that is gathered when the request is run.

System_CAPS_pubclassWebTestResponse

Represents an HTTP response.

System_CAPS_pubclassWebTestResponseCodeConverter

Helper class that helps with conversions between enum values and strings.

System_CAPS_pubclassWebTestResultComment

Represents the comment body of a Web performance test result.

System_CAPS_pubclassWebTestResultCondition

Represents a Web performance test result condition.

System_CAPS_pubclassWebTestResultDetails

Class to contain the result details of Web performance tests.

System_CAPS_pubclassWebTestResultDetailsSerializer

Saves and loads a WebTestResultDetails to and from a file in binary format.

System_CAPS_pubclassWebTestResultGroup

Abstracts a group of results in the Web performance test result, such as a loop or condition.

System_CAPS_pubclassWebTestResultIteration

Represents the current iteration of a Web performance test.

System_CAPS_pubclassWebTestResultLoop

Class to contain the loop result of a Web performance test.

System_CAPS_pubclassWebTestResultLoopIteration

Class to contain the result of a Web performance test loop iteration.

System_CAPS_pubclassWebTestResultPage

Retrieves a top-level page result.

System_CAPS_pubclassWebTestResultTransaction

Stores the results of a transaction in a Web performance test.

System_CAPS_pubclassWebTestResultUnit

Represents a page or a request object in the Web performance test result.

System_CAPS_pubclassWebTestRuleBase

An abstract base class extended by rule and reference classes in the Microsoft.VisualStudio.TestTools.WebTesting namespace.

System_CAPS_pubclassWebTestStoppedException

Represents the exception that is thrown when data binding is performed on a table with a unique AccessMethod when there are no more rows of data in the table.

System_CAPS_pubclassWorkItemAttribute

Use this attribute to specify a work item that is associated with a test.

InterfaceDescription
System_CAPS_pubinterfaceIBinaryHttpBodyEditorPlugin

Provides an interface for a binary HTTP body plug-in.

System_CAPS_pubinterfaceIHttpBody

Provides a common interface for accessing an HTTP body.

System_CAPS_pubinterfaceISafeRegex

System_CAPS_pubinterfaceIStringHttpBodyEditorPlugin

Provides an interface for a string HTTP body plug-in.

EnumerationDescription
System_CAPS_pubenumConditionalConstructType

Enumerates all possible conditional construct types.

System_CAPS_pubenumConditionalRuleType

Enumerates all possible condition rule types.

System_CAPS_pubenumDataBindingAccessMethod

Enumeration for the access method that is used for data binding.

System_CAPS_pubenumDataBindingSelectColumns

Specifies the column filters that are used for data binding.

System_CAPS_pubenumForLoopComparisonOperator

Enumerates all possible numeric comparison operators for the for loop conditional rule.

System_CAPS_pubenumNumericalComparisonOperator

Enumerates the numeric comparison operators that are available.

System_CAPS_pubenumOutcome

Describes the outcome of a Web performance test.

System_CAPS_pubenumRequestType

Enumerates the request types that are available.

System_CAPS_pubenumRuleExecutionOrder

Enumerates the possible order-of-execution for validation rules.

System_CAPS_pubenumStringComparisonOperator

Enumerates the string comparison operators that are available.

System_CAPS_pubenumValidationLevel

Used to identify the importance of a validation rule that is run in a load test.

System_CAPS_pubenumWebTestErrorType

Enumerates the types of errors that can be included in a WebTestError object.

System_CAPS_pubenumWebTestExecutionInstruction

Used to denote how to handle an operation.

System_CAPS_pubenumWebTestResponseCode

Enumerates the HTTP response codes that are defined in RFC 2616 for HTTP 1.1.

System_CAPS_pubenumWebTestResultStatus

Enumeration for the status of a Web performance test result.

Return to top
Show: