We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

WebTestLoop Class

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

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

public class WebTestLoop : WebTestConditionalConstruct

The WebTestLoop type exposes the following members.

Public methodWebTestLoop(LoopConditionalRuleReference)Initializes a new instance of the WebTestLoop class by using the specified LoopConditionalRuleReference.
Protected methodWebTestLoop(WebTestLoop)Initializes a new instance of the WebTestLoop class by copying the specified WebTestLoop.
Public methodWebTestLoop(ConditionalRule, Int32, Boolean)Initializes a new instance of the WebTestLoop class by using the specified parameters.

Public propertyConditionalRuleReferenceGets or sets the reference to a conditional rule. (Inherited from WebTestConditionalConstruct.)
Public propertyCurrentIterationNumberGets the current iteration number.
Public propertyItemIdZero-based sequence number of the item in the Web performance test. (Inherited from WebTestItem.)
Public propertyItemsGets the collection of WebTestItem objects. (Inherited from WebTestConditionalConstruct.)
Public propertyLoopConditionalRuleReferenceGets the LoopConditionalRuleReference.
Public propertyUniqueStringIdGets or sets the unique string ID. (Inherited from WebTestConditionalConstruct.)

Public methodCloneCreates a new WebTestLoop that is a copy of the current instance. (Overrides WebTestItem.Clone().)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExecuteCheckConditionalRule (Overrides WebTestConditionalConstruct.ExecuteCheckConditionalRule(WebTest).)
Public methodExecuteCleanUpConditionalRulePerforms cleanup after the conditional rule is checked. (Inherited from WebTestConditionalConstruct.)
Public methodExecuteInitializeConditionalRuleInitializes the conditional rule. (Overrides WebTestConditionalConstruct.ExecuteInitializeConditionalRule(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 methodGetConditionalRuleTextReturns the text description of the conditional rule. (Inherited from WebTestConditionalConstruct.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitialize(ConditionalRuleReference)Initializes a new referenced conditional rule. (Inherited from WebTestConditionalConstruct.)
Protected methodInitialize(WebTestConditionalConstruct, ConditionalRuleReference)Initializes a new referenced conditional rule by copying the specified ConditionalRuleReference. (Inherited from WebTestConditionalConstruct.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRegisterDataSourceRegisters the specified data source and data table.
Public methodRuntimeCloneCreates a new WebTestLoop that is a copy of the current instance at runtime. (Overrides WebTestItem.RuntimeClone().)
Public methodToString()Returns a String that represents the current WebTestLoop. (Overrides Object.ToString().)
Public methodToString(String)Returns a String that represents the current WebTestLoop. (Overrides WebTestConditionalConstruct.ToString(String).)

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