ConditionalRule Class
Condition rules are executed in a conditional loop or statement. These rules are intended to decide whether the body of the loop or statement must be executed.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Microsoft.VisualStudio.TestTools.WebTesting::ConditionalRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ContextParameterExistenceRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::CookieComparisonRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::CookieExistenceRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::CountingLoopRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ForLoopRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::LastRequestOutcomeRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::LastResponseCodeRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::NumericalComparisonRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ProbabilityRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::StringComparisonRule
| Name | Description | |
|---|---|---|
![]() | ConditionalRule() | Initializes a new instance of the ConditionalRule class. |
| Name | Description | |
|---|---|---|
![]() | CheckCondition(Object^, ConditionalEventArgs^) | Determines whether the condition was met. |
![]() | CleanUp(Object^, ConditionalEventArgs^) | 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. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | Initialize(Object^, ConditionalEventArgs^) | Called before the first CheckCondition call is made. Any initialization code that is relevant to the conditional rule should be added to this method. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | StringRepresentation() | Converts the rule to a string to be displayed in the tree. |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

