Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DeclarativeWebTest Class

Represents a declarative, XML-based Web performance test.

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTest
    Microsoft.VisualStudio.TestTools.WebTesting.DeclarativeWebTest

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

[SerializableAttribute]
public class DeclarativeWebTest : WebTest, 
	ICloneable

The DeclarativeWebTest type exposes the following members.

  NameDescription
Public methodDeclarativeWebTestInitializes a new instance of the DeclarativeWebTest class.
Top

  NameDescription
Public propertyConditionalRuleReferencesGets a collection of conditional rule references.
Public propertyContextGets or sets an object that contains context variables that are available to the Web performance test at run time. (Inherited from WebTest.)
Public propertyContextParametersGets the set of context parameters associated with this Web performance test.
Public propertyDataSourcesGets the collection of data sources that are defined for the Web performance test. (Inherited from WebTest.)
Public propertyDescriptionGets or sets a textual description of this Web performance test.
Public propertyGuidGets or sets a GUID that uniquely identifies each instance of a WebTest. (Inherited from WebTest.)
Public propertyInheritFromWebTestGets the WebTest object for the parent Web performance test when this Web performance test is included in another Web performance test and inherits properties from the parent Web performance test. (Inherited from WebTest.)
Public propertyItemsGets or sets the set of items that are contained in this Web performance test. Items are transactions, requests, comments, and included Web performance tests.
Public propertyLastRequestOutcome (Inherited from WebTest.)
Public propertyLastResponseGets the last response that was received for a top-level request in this Web performance test. (Inherited from WebTest.)
Public propertyNameGets the name of the test case. (Inherited from WebTest.)
Public propertyOutcomeGets or sets the Pass or Fail outcome of the Web performance test. (Inherited from WebTest.)
Public propertyPasswordGets and sets the password that is used for authentication. (Inherited from WebTest.)
Public propertyPreAuthenticateGets or sets a value that indicates whether to pre-authenticate all requests in the Web performance test. (Inherited from WebTest.)
Public propertyProxyGets or sets a value that represents a proxy server for the Web performance test to use. (Inherited from WebTest.)
Public propertyRequestBodyCaptureLimitGets or sets the limit, in bytes, that is used to capture request data. (Inherited from WebTest.)
Public propertyRequestItemsGets a collection of all request items in this test case.
Public propertyResponseBodyCaptureLimitGets or sets the limit, in bytes, that is used to capture response data. (Inherited from WebTest.)
Public propertyStopOnErrorGets or sets the indication of whether the test should stop running when an error occurs. (Inherited from WebTest.)
Public propertyUserNameGets and sets the user name that is used for authentication. (Inherited from WebTest.)
Public propertyValidationRuleReferencesGets the collection of references to Web performance test-level validation rules. (Inherited from WebTest.)
Public propertyWebProxyGets or sets the Web proxy for this Web performance test to use. (Inherited from WebTest.)
Public propertyWebTestPluginReferencesGets the collection of references to Web performance test plug-ins. (Inherited from WebTest.)
Top

  NameDescription
Public methodAddCommentToResultAdds a comment to the Web performance test result that follows the most recently completed Web performance test request, transaction, or included Web performance test. (Inherited from WebTest.)
Public methodAddDataSource(String, String, DataBindingAccessMethod, String[])Adds a data source to the data collection that is contained by the Web performance test. (Inherited from WebTest.)
Public methodAddDataSource(String, String, String, DataBindingAccessMethod, String[])Adds a data source to the data collection that is contained by the Web performance test. (Inherited from WebTest.)
Public methodAddDataSource(String, String, String, DataBindingAccessMethod, DataBindingSelectColumns, String[]) (Inherited from WebTest.)
Public methodAddDataSourceBindingDefines a binding relationship and adds it to the data source binding collection for the Web performance test. (Inherited from WebTest.)
Public methodBeginCondition (Inherited from WebTest.)
Public methodBeginLoop (Inherited from WebTest.)
Public methodBeginTransactionStarts a transaction timer by using the specified name. (Inherited from WebTest.)
Public methodCloneCreates a new DeclarativeWebTest that is a copy of the current instance.
Public methodEndCondition (Inherited from WebTest.)
Public methodEndLoop (Inherited from WebTest.)
Public methodEndTransaction(String)Ends a transaction timer with the specified name. (Inherited from WebTest.)
Public methodEndTransaction(String, Boolean)Ends the specified transaction. (Inherited from WebTest.)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExecuteConditionalRule (Inherited from WebTest.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDataTableRowCount (Inherited from WebTest.)
Public methodGetEnumeratorGets an Enumerator that enumerates the items in the Web performance test. (Inherited from WebTest.)
Public methodGetExtractionRuleVariablesReturns all the extraction rule variable names in the web test.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetItemGets the WebTestItem with the specified zero-based request number.
Public methodGetRequestEnumeratorGets an enumerator for all requests at run time based on the conditional rule. (Overrides WebTest.GetRequestEnumerator().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIncludeWebTest(String)Calls a coded Web performance test from within a coded Web performance test. (Inherited from WebTest.)
Public methodIncludeWebTest(WebTest)Calls a coded Web performance test from within a coded Web performance test. (Inherited from WebTest.)
Public methodIncludeWebTest(String, Boolean)Calls a coded Web performance test from within a coded Web performance test. (Inherited from WebTest.)
Public methodIncludeWebTest(WebTest, Boolean)Calls a coded Web performance test from within a coded Web performance test. (Inherited from WebTest.)
Public methodInitializeDataBindingAdds data source and data binding information from attributes to the current instance. Primarily used for coded web tests. (Overrides WebTest.InitializeDataBinding().)
Public methodInsertItemAtInserts a WebTestItem at the specified item index.
Public methodInternalSetOutcome (Inherited from WebTest.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodMoveDataTableCursor(String, String)Advances the cursor in the data table to the next record. (Inherited from WebTest.)
Public methodMoveDataTableCursor(String, String, Int32) (Inherited from WebTest.)
Public methodRegisterDataSourceInLoop (Inherited from WebTest.)
Public methodReloadDataTable (Inherited from WebTest.)
Public methodRemoveItemAtRemoves the WebTestItem at the specified item index.
Public methodStopStops the current Web performance test. (Inherited from WebTest.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventPostPage (Inherited from WebTest.)
Public eventPostRequestOccurs after each request that this Web performance test runs. (Inherited from WebTest.)
Public eventPostTransaction (Inherited from WebTest.)
Public eventPostWebTestOccurs after the Web performance test runs. (Inherited from WebTest.)
Public eventPrePage (Inherited from WebTest.)
Public eventPreRequestOccurs before each request this Web performance test runs. (Inherited from WebTest.)
Public eventPreRequestDataBinding (Inherited from WebTest.)
Public eventPreTransaction (Inherited from WebTest.)
Public eventPreWebTestOccurs before the Web performance test runs. (Inherited from WebTest.)
Public eventValidateResponseOccurs when the response to a Web performance test request has been received and is ready to be validated. (Inherited from WebTest.)
Public eventValidateResponseOnPageComplete (Inherited from WebTest.)
Top

Do not use the DeclarativeWebTest class as a base class.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2015 Microsoft