Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
property int DelayBetweenIterations {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The delay between the tests in a load test.

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.

Return to top
Show: