Represents a declarative, XML-based Web performance test.
Inheritance Hierarchy
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)
Syntax
'Declaration
<SerializableAttribute> _
Public Class DeclarativeWebTest _
    Inherits WebTest _
    Implements ICloneable
[SerializableAttribute]
public class DeclarativeWebTest : WebTest, 
    ICloneable
[SerializableAttribute]
public ref class DeclarativeWebTest : public WebTest, 
    ICloneable
[<SerializableAttribute>]
type DeclarativeWebTest =  
    class 
        inherit WebTest 
        interface ICloneable 
    end
public class DeclarativeWebTest extends WebTest implements ICloneable
The DeclarativeWebTest type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | DeclarativeWebTest | Initializes a new instance of the DeclarativeWebTest class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | ConditionalRuleReferences | Gets a collection of conditional rule references. | 
| .gif) | Context | (Inherited from WebTest.) | 
| .gif) | ContextParameters | Gets the set of context parameters associated with this Web performance test. | 
| .gif) | DataSources | (Inherited from WebTest.) | 
| .gif) | Description | Gets or sets a textual description of this Web performance test. | 
| .gif) | Guid | (Inherited from WebTest.) | 
| .gif) | InheritFromWebTest | (Inherited from WebTest.) | 
| .gif) | Items | Gets or sets the set of items that are contained in this Web performance test. Items are transactions, requests, comments, and included Web performance tests. | 
| .gif) | LastRequestOutcome | (Inherited from WebTest.) | 
| .gif) | LastResponse | (Inherited from WebTest.) | 
| .gif) | Name | (Inherited from WebTest.) | 
| .gif) | Outcome | (Inherited from WebTest.) | 
| .gif) | Password | (Inherited from WebTest.) | 
| .gif) | PreAuthenticate | (Inherited from WebTest.) | 
| .gif) | Proxy | (Inherited from WebTest.) | 
| .gif) | RequestBodyCaptureLimit | (Inherited from WebTest.) | 
| .gif) | RequestItems | Gets a collection of all request items in this test case. | 
| .gif) | ResponseBodyCaptureLimit | (Inherited from WebTest.) | 
| .gif) | ResultsLocale | (Inherited from WebTest.) | 
| .gif) | StopOnError | (Inherited from WebTest.) | 
| .gif) | UserName | (Inherited from WebTest.) | 
| .gif) | ValidationRuleReferences | (Inherited from WebTest.) | 
| .gif) | WebProxy | (Inherited from WebTest.) | 
| .gif) | WebTestPluginReferences | (Inherited from WebTest.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddCommentToResult | (Inherited from WebTest.) | 
| .gif) | AddDataSource(String, String, DataBindingAccessMethod, array<String[]) | (Inherited from WebTest.) | 
| .gif) | AddDataSource(String, String, String, DataBindingAccessMethod, array<String[]) | (Inherited from WebTest.) | 
| .gif) | AddDataSource(String, String, String, DataBindingAccessMethod, DataBindingSelectColumns, array<String[]) | (Inherited from WebTest.) | 
| .gif) | AddDataSourceBinding | (Inherited from WebTest.) | 
| .gif) | BeginCondition | (Inherited from WebTest.) | 
| .gif) | BeginLoop | (Inherited from WebTest.) | 
| .gif) | BeginTransaction | (Inherited from WebTest.) | 
| .gif) | Clone | Creates a new DeclarativeWebTest that is a copy of the current instance. | 
| .gif) | EndCondition | (Inherited from WebTest.) | 
| .gif) | EndLoop | (Inherited from WebTest.) | 
| .gif) | EndTransaction(String) | (Inherited from WebTest.) | 
| .gif) | EndTransaction(String, Boolean) | (Inherited from WebTest.) | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | ExecuteConditionalRule | (Inherited from WebTest.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetDataTableRowCount | (Inherited from WebTest.) | 
| .gif) | GetEnumerator | (Inherited from WebTest.) | 
| .gif) | GetExtractionRuleVariables | Returns all the extraction rule variable names in the web test. | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetItem | Gets the WebTestItem with the specified zero-based request number. | 
| .gif) | GetRequestEnumerator | Gets an enumerator for all requests at run time based on the conditional rule. (Overrides WebTest.GetRequestEnumerator().) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IncludeWebTest(String) | (Inherited from WebTest.) | 
| .gif) | IncludeWebTest(WebTest) | (Inherited from WebTest.) | 
| .gif) | IncludeWebTest(String, Boolean) | (Inherited from WebTest.) | 
| .gif) | IncludeWebTest(WebTest, Boolean) | (Inherited from WebTest.) | 
| .gif) | InitializeDataBinding | Adds data source and data binding information from attributes to the current instance. Primarily used for coded web tests. (Overrides WebTest.InitializeDataBinding().) | 
| .gif) | InsertItemAt | Inserts a WebTestItem at the specified item index. | 
| .gif) | InternalSetOutcome | (Inherited from WebTest.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | MoveDataTableCursor(String, String) | (Inherited from WebTest.) | 
| .gif) | MoveDataTableCursor(String, String, Int32) | (Inherited from WebTest.) | 
| .gif) | RegisterDataSourceInLoop | (Inherited from WebTest.) | 
| .gif) | ReloadDataTable | (Inherited from WebTest.) | 
| .gif) | RemoveItemAt | Removes the WebTestItem at the specified item index. | 
| .gif) | Stop | (Inherited from WebTest.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | PostPage | (Inherited from WebTest.) | 
| .gif) | PostRequest | (Inherited from WebTest.) | 
| .gif) | PostTransaction | (Inherited from WebTest.) | 
| .gif) | PostWebTest | (Inherited from WebTest.) | 
| .gif) | PrePage | (Inherited from WebTest.) | 
| .gif) | PreRequest | (Inherited from WebTest.) | 
| .gif) | PreRequestDataBinding | (Inherited from WebTest.) | 
| .gif) | PreTransaction | (Inherited from WebTest.) | 
| .gif) | PreWebTest | (Inherited from WebTest.) | 
| .gif) | ValidateResponse | (Inherited from WebTest.) | 
| .gif) | ValidateResponseOnPageComplete | (Inherited from WebTest.) | 
Top
Remarks
Do not use the DeclarativeWebTest class as a base class.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.