CountingLoopRule Class
Class to contain a conditional rule that is used to execute a loop for a particular number of times.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.TestTools.WebTesting.ConditionalRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules.CountingLoopRule
Namespace: Microsoft.VisualStudio.TestTools.WebTesting.Rules
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
<ConditionalRuleTypeAttribute(ConditionalRuleType.LoopOnly)> _
Public Class CountingLoopRule _
Inherits ConditionalRule
[ConditionalRuleTypeAttribute(ConditionalRuleType.LoopOnly)]
public class CountingLoopRule : ConditionalRule
[ConditionalRuleTypeAttribute(ConditionalRuleType::LoopOnly)]
public ref class CountingLoopRule : public ConditionalRule
[<ConditionalRuleTypeAttribute(ConditionalRuleType.LoopOnly)>]
type CountingLoopRule =
class
inherit ConditionalRule
end
public class CountingLoopRule extends ConditionalRule
The CountingLoopRule type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CountingLoopRule | Initializes a new instance of the CountingLoopRule class. |
Top
Properties
Name | Description | |
---|---|---|
ContextParameterName | Gets or sets the context parameter name. | |
IterationsCount | Gets or sets the number of iterations. |
Top
Methods
Name | Description | |
---|---|---|
CheckCondition | Determines whether the condition was met. (Overrides ConditionalRule.CheckCondition(Object, ConditionalEventArgs).) | |
CleanUp | Called after the loop or condition has finished executing. This includes any requests in the body. Any cleanup code that is relevant to the conditional rule must be added to this method. (Inherited from ConditionalRule.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize | Initializes a CountingLoopRule. (Overrides ConditionalRule.Initialize(Object, ConditionalEventArgs).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
StringRepresentation | Converts the rule to a string to be displayed in the tree. (Overrides ConditionalRule.StringRepresentation().) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
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.