LoadTestLoadProfile Class

Provides an abstract base class for load test profiles.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestLoadProfile
    Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestConstantLoadProfile
    Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestGoalBasedLoadProfile
    Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestStepLoadProfile

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

Syntax

'Declaration
<SerializableAttribute> _
Public MustInherit Class LoadTestLoadProfile
[SerializableAttribute]
public abstract class LoadTestLoadProfile
[SerializableAttribute]
public ref class LoadTestLoadProfile abstract
[<AbstractClass>]
[<SerializableAttribute>]
type LoadTestLoadProfile =  class end
public abstract class LoadTestLoadProfile

The LoadTestLoadProfile type exposes the following members.

Constructors

  Name Description
Protected method LoadTestLoadProfile Initializes a new instance of the LoadTestLoadProfile class.

Top

Properties

  Name Description
Public property MaxUserCount Gets or sets the maximum number of users that can be returned by the GetLoad method.
Public property MinUserCount Gets or sets the minimum number of users that that can be returned by the GetLoad method of the class extending LoadTestLoadProfile.
Public property ScenarioName Gets or sets the name of the scenario in the load test that the load profile implementation is controlling.

Top

Methods

  Name Description
Public method CheckIfProfileCanBeModified Throws an exception if the profile property is not yet ready to be modified.
Public method Copy Returns a copy of the current object so it can be modified and assigned to the LoadTestScenario.LoadProfile property.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLoad When overridden in a derived class, returns the user load that should be used at the current time in the load test based on the number of seconds since the start of the load test.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RestoreUserCountAfterRestart Restores the current user count to the value it had before the restart.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Validate When overridden in a derived class, validates whether all properties of this object have values that are valid and consistent.

Top

Remarks

LoadTestLoadProfile is an abstract base class for the following classes:

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.LoadTesting Namespace

Other Resources

About Load Pattern

How to: Create a Load Test Plug-In