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.

LoadTest Class

 

Represents the load test being run.

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

System.Object
  Microsoft.VisualStudio.TestTools.LoadTesting.LoadTest

public class LoadTest

NameDescription
System_CAPS_pubmethodLoadTest()

Initializes a new instance of the LoadTest class.

NameDescription
System_CAPS_pubpropertyContext

Gets the LoadTestContext for the current load test run.

System_CAPS_pubpropertyName

Gets the name of the load test.

System_CAPS_pubpropertyRunSettings

Gets the run settings used for the current load test run.

System_CAPS_pubpropertyScenarios

Gets a collection of scenarios within the load test.

NameDescription
System_CAPS_pubmethodAbort()

Stops the load test on all agents.

System_CAPS_pubmethodAbort(Exception)

Stops the load test on all agents and specifies the exception that caused the abort.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventHeartbeat

Occurs once every second.

System_CAPS_pubeventLoadTestAborted

Occurs when the load test is aborted.

System_CAPS_pubeventLoadTestFinished

Occurs when the load test has stopped running on the agent.

System_CAPS_pubeventLoadTestStarting

Occurs just before the load test begins to run on the agent.

System_CAPS_pubeventLoadTestWarmupComplete

Occurs when the warm-up period has completed.

System_CAPS_pubeventTestFinished

Occurs when an iteration of one of the tests contained within the load test finishes.

System_CAPS_pubeventTestSelected

Occurs every time an iteration of one of the tests contained within the LoadTest is selected.

System_CAPS_pubeventTestStarting

Occurs when an iteration of one of the tests contained within the load test is started.

System_CAPS_pubeventThresholdExceeded

Occurs when a threshold rule is exceeded.

Load testing is useful for predicting the impact on the performance of an application during high user workloads. This simulates realistic user volumes to define real world conditions that can be used for changing requirements and application design to meet expected quality standards for the software product. Load tests can include both Web and unit tests.

Load test settings can be accessed through the UI or with a load test plug-in. For more information, see How to: Create a Load Test Plug-In.

System_CAPS_noteNote

It is a good practice to run a smoke test before running any intensive load test. For more information, see . This helps validate configurations and expected behavior of the test.f46e95a9-d1dd-4cd3-93b1-b80e0ff912fc

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

Return to top
Show: