DeclarativeWebTest Class

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
Public method DeclarativeWebTest Initializes a new instance of the DeclarativeWebTest class.

Top

Properties

  Name Description
Public property ConditionalRuleReferences Gets a collection of conditional rule references.
Public property Context (Inherited from WebTest.)
Public property ContextParameters Gets the set of context parameters associated with this Web performance test.
Public property DataSources (Inherited from WebTest.)
Public property Description Gets or sets a textual description of this Web performance test.
Public property Guid (Inherited from WebTest.)
Public property InheritFromWebTest (Inherited from WebTest.)
Public property 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.
Public property LastRequestOutcome (Inherited from WebTest.)
Public property LastResponse (Inherited from WebTest.)
Public property Name (Inherited from WebTest.)
Public property Outcome (Inherited from WebTest.)
Public property Password (Inherited from WebTest.)
Public property PreAuthenticate (Inherited from WebTest.)
Public property Proxy (Inherited from WebTest.)
Public property RequestBodyCaptureLimit (Inherited from WebTest.)
Public property RequestItems Gets a collection of all request items in this test case.
Public property ResponseBodyCaptureLimit (Inherited from WebTest.)
Public property ResultsLocale (Inherited from WebTest.)
Public property StopOnError (Inherited from WebTest.)
Public property UserName (Inherited from WebTest.)
Public property ValidationRuleReferences (Inherited from WebTest.)
Public property WebProxy (Inherited from WebTest.)
Public property WebTestPluginReferences (Inherited from WebTest.)

Top

Methods

  Name Description
Public method AddCommentToResult (Inherited from WebTest.)
Public method AddDataSource(String, String, DataBindingAccessMethod, array<String[]) (Inherited from WebTest.)
Public method AddDataSource(String, String, String, DataBindingAccessMethod, array<String[]) (Inherited from WebTest.)
Public method AddDataSource(String, String, String, DataBindingAccessMethod, DataBindingSelectColumns, array<String[]) (Inherited from WebTest.)
Public method AddDataSourceBinding (Inherited from WebTest.)
Public method BeginCondition (Inherited from WebTest.)
Public method BeginLoop (Inherited from WebTest.)
Public method BeginTransaction (Inherited from WebTest.)
Public method Clone Creates a new DeclarativeWebTest that is a copy of the current instance.
Public method EndCondition (Inherited from WebTest.)
Public method EndLoop (Inherited from WebTest.)
Public method EndTransaction(String) (Inherited from WebTest.)
Public method EndTransaction(String, Boolean) (Inherited from WebTest.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method ExecuteConditionalRule (Inherited from WebTest.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetDataTableRowCount (Inherited from WebTest.)
Public method GetEnumerator (Inherited from WebTest.)
Public method GetExtractionRuleVariables Returns all the extraction rule variable names in the web test.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetItem Gets the WebTestItem with the specified zero-based request number.
Public method GetRequestEnumerator Gets an enumerator for all requests at run time based on the conditional rule. (Overrides WebTest.GetRequestEnumerator().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IncludeWebTest(String) (Inherited from WebTest.)
Public method IncludeWebTest(WebTest) (Inherited from WebTest.)
Public method IncludeWebTest(String, Boolean) (Inherited from WebTest.)
Public method IncludeWebTest(WebTest, Boolean) (Inherited from WebTest.)
Public method InitializeDataBinding Adds data source and data binding information from attributes to the current instance. Primarily used for coded web tests. (Overrides WebTest.InitializeDataBinding().)
Public method InsertItemAt Inserts a WebTestItem at the specified item index.
Public method InternalSetOutcome (Inherited from WebTest.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MoveDataTableCursor(String, String) (Inherited from WebTest.)
Public method MoveDataTableCursor(String, String, Int32) (Inherited from WebTest.)
Public method RegisterDataSourceInLoop (Inherited from WebTest.)
Public method ReloadDataTable (Inherited from WebTest.)
Public method RemoveItemAt Removes the WebTestItem at the specified item index.
Public method Stop (Inherited from WebTest.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event PostPage (Inherited from WebTest.)
Public event PostRequest (Inherited from WebTest.)
Public event PostTransaction (Inherited from WebTest.)
Public event PostWebTest (Inherited from WebTest.)
Public event PrePage (Inherited from WebTest.)
Public event PreRequest (Inherited from WebTest.)
Public event PreRequestDataBinding (Inherited from WebTest.)
Public event PreTransaction (Inherited from WebTest.)
Public event PreWebTest (Inherited from WebTest.)
Public event ValidateResponse (Inherited from WebTest.)
Public event 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.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace