Share via


LoadTestConstantLoadProfile.GetLoad Method

Returns the user load that should be used at the current time in the load test based on the value of elapsedSeconds since the start of the load test that was passed as an argument.

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

Syntax

'Declaration
Public Overrides Function GetLoad ( _
    elapsedSeconds As Integer _
) As Integer
public override int GetLoad(
    int elapsedSeconds
)
public:
virtual int GetLoad(
    int elapsedSeconds
) override
abstract GetLoad : 
        elapsedSeconds:int -> int  
override GetLoad : 
        elapsedSeconds:int -> int
public override function GetLoad(
    elapsedSeconds : int
) : int

Parameters

  • elapsedSeconds
    Type: Int32

    The time, in seconds, since the start of the load test.

Return Value

Type: Int32

Remarks

This is a virtual method that must be implemented by each class that extends LoadTestLoadProfile.

.NET Framework Security

See Also

Reference

LoadTestConstantLoadProfile Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace