Share via


LoadTestStepLoadProfile.StepDuration Property

Gets or sets the amount of time between steps in seconds.

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

Syntax

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

Property Value

Type: Int32
The amount of time between steps, in seconds.

Remarks

Changes to any of the properties of any of the LoadTestLoadProfile classes should all be made before you assign the LoadTestLoadProfile object to the LoadProfile property of the LoadTestScenario. After the LoadTestLoadProfile object has been assigned to the LoadProfile property, it becomes a read-only version. An exception will be thrown if you try to set any of the properties of the LoadProfile object while it is in the read-only state. To get a new writable LoadProfile object, call the Copy() method as shown in example under LoadTestGoalBasedLoadProfile.

.NET Framework Security

See Also

Reference

LoadTestStepLoadProfile Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace