LoadTestScenario.DelayBetweenIterations Property

Gets or sets the delay between the tests in a load test.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
Public Property DelayBetweenIterations As Integer
public int DelayBetweenIterations { get; set; }
public:
property int DelayBetweenIterations {
    int get ();
    void set (int value);
}
member DelayBetweenIterations : int with get, set
function get DelayBetweenIterations () : int 
function set DelayBetweenIterations (value : int)

Property Value

Type: Int32
The delay between the tests in a load test.

Remarks

Changing this property affects the delays only between tests that begin after the property change message is received by the agent. The length of any delay that is already in progress when the property is set is unaffected.

You can assign a value to the DelayBetweenIterations property of LoadTestScenario in the Initialize() method or in any of the LoadTestPlugin event handlers. However, it is pointless to assign a value to this property in the LoadTestFinished event handler.

In a multi-agent test rig, a Load Test Plug-in that is running on any of the agents can change the DelayBetweenIterations property. In this case, those changes are propagated to all other agents through the controller.

If plug-ins that are running on different agents both change the DelayBetweenIterations property, the last one to change the value will override the previous value on all agents. Typically, changes are applied in seconds on all agents. However, especially when you use many agents, some agents might begin to use the new settings before other agents.

.NET Framework Security

See Also

Reference

LoadTestScenario Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace