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 | |
---|---|---|
LoadTestLoadProfile | Initializes a new instance of the LoadTestLoadProfile class. |
Top
Properties
Name | Description | |
---|---|---|
MaxUserCount | Gets or sets the maximum number of users that can be returned by the GetLoad method. | |
MinUserCount | Gets or sets the minimum number of users that that can be returned by the GetLoad method of the class extending LoadTestLoadProfile. | |
ScenarioName | Gets or sets the name of the scenario in the load test that the load profile implementation is controlling. |
Top
Methods
Name | Description | |
---|---|---|
CheckIfProfileCanBeModified | Throws an exception if the profile property is not yet ready to be modified. | |
Copy | Returns a copy of the current object so it can be modified and assigned to the LoadTestScenario.LoadProfile property. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
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. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RestoreUserCountAfterRestart | Restores the current user count to the value it had before the restart. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
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:
Any implementation that you write that extends LoadTestLoadProfile
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