MSDN Library
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.Rules Namespace

 

The Microsoft.VisualStudio.TestTools.WebTesting.Rules namespace contains a set of rules used by Web performance tests to test Web pages. These rules provide Web performance tests a set of tools to test the content of Web pages. Additionally, custom rules can be created to extend the functionality of Web performance 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
System_CAPS_pubclassConditionalRuleTypeAttribute

Attribute that represents the conditional rule type attribute. This attribute specifies the conditional rule type for which the conditional rule applies.

System_CAPS_pubclassContextParameterExistenceRule

Class to contain a condition rule that checks whether a context parameter exists.

System_CAPS_pubclassCookieComparisonRule

Class to contain a conditional rule that checks the value of a cookie.

System_CAPS_pubclassCookieExistenceRule

Class to contain a conditional rule that checks whether a specific cookie exists.

System_CAPS_pubclassCountingLoopRule

Class to contain a conditional rule that is used to execute a loop for a particular number of times.

System_CAPS_pubclassExtractAttributeValue

Extract the value of an attribute from a specified HTML tag.

System_CAPS_pubclassExtractFormField

Extracts the value of a form field attribute and adds it to the WebTestContext.

System_CAPS_pubclassExtractGuids

System_CAPS_pubclassExtractHiddenFields

Extracts all hidden fields from the response and adds each value to the context.

System_CAPS_pubclassExtractHttpHeader

Used to extract an HTTP header value from the response and place the value of the header into the WebTestContext.

System_CAPS_pubclassExtractRegularExpression

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

System_CAPS_pubclassExtractText

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

System_CAPS_pubclassForLoopRule

Class to contain a conditional rule that represents an iteration statement, an initialization statement, a test expression, and an increment statement.

System_CAPS_pubclassIsContextParameterNameAttribute

Attribute to specify that a property represents a context parameter name.

System_CAPS_pubclassLastRequestOutcomeRule

Class to contain a conditional rule that compares the outcome of the last request. Applies only to condition statements.

System_CAPS_pubclassLastResponseCodeRule

Class to contain a conditional rule that checks the response code of the last response. Applies only to condition statements.

System_CAPS_pubclassNumericalComparisonRule

Class to contain a conditional rule that consists of a numeric comparison.

System_CAPS_pubclassProbabilityRule

Class to contain a conditional rule that is based on the provided probability.

System_CAPS_pubclassRuleExecutionOrderAttribute

Attribute to specify when a rule should be executed relative to the dependent requests of this rule.

System_CAPS_pubclassRuleResult

Represents a result from the execution of a Web performance test rule.

System_CAPS_pubclassSharePointExtractFormField2

System_CAPS_pubclassSharePointExtractGUIDFormField

System_CAPS_pubclassSharePointExtractListViewWebPartScriptValues

System_CAPS_pubclassSharePointExtractSelectFormField

System_CAPS_pubclassSharePointExtractViaKeyString

System_CAPS_pubclassSharePointFindCalendarDates

System_CAPS_pubclassSharePointFindCalendarItems

System_CAPS_pubclassSharePointFindDocumentItems

System_CAPS_pubclassSharePointFindHrefs

System_CAPS_pubclassSharePointFindListItems

System_CAPS_pubclassSharePointFindWorkFlowInstances

System_CAPS_pubclassSharePointValidationRuleFindText2

System_CAPS_pubclassSharePointValidationRuleResponseURL2

System_CAPS_pubclassStringComparisonRule

Class to contain a conditional rule that consists of a string comparison.

System_CAPS_pubclassValidateFormField

Validates the name and value of a form field attribute.

System_CAPS_pubclassValidateHtmlSelectTag

A validation rule that is used to validate the selected option from an HTML select tag.

System_CAPS_pubclassValidateHtmlTagInnerText

Validation rule that is used to validate the inner text from an HTML tag.

System_CAPS_pubclassValidateResponseUrl

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

System_CAPS_pubclassValidationRuleFindText

Validates that the specified text exists or does not exist in the text response.

System_CAPS_pubclassValidationRuleRequestTime

Validates that the response for a request is returned within the specified period of time.

System_CAPS_pubclassValidationRuleRequiredAttributeValue

Validates that the HtmlDocument provided by the response contains a tag that includes an attribute that has a specified value.

System_CAPS_pubclassValidationRuleRequiredTag

Validates the existence of a specified tag in the response.

System_CAPS_pubclassValidationRuleResponseTimeGoal

Used to check that the response time for a request is less than or equal to the response time goal that is specified in the request properties.

Return to top
Show:
© 2016 Microsoft