LoadTestScenario Class

Represents a scenario that is contained in a load test.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestScenario

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

Syntax

'Declaration
Public Class LoadTestScenario
public class LoadTestScenario
public ref class LoadTestScenario
type LoadTestScenario =  class end
public class LoadTestScenario

The LoadTestScenario type exposes the following members.

Properties

  Name Description
Public property CurrentLoad Gets or sets the current value for the concurrent user load for this scenario.
Public property DelayBetweenIterations Gets or sets the delay between the tests in a load test.
Public property LoadProfile Gets or sets the profile of the user load for this scenario.
Public property Name Gets the name of the scenario as it is defined in the Load Test Editor.
Public property TestNames Gets an array of the test names that are included in the scenario.

Top

Methods

  Name Description
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 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 ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event LoadChanged Occurs when the current user load for this scenario changes as the load test runs.

Top

Remarks

Using a Load Test Plug-In, a LoadTestScenario object is used to override the specified user load in the load test to control the user load programmatically. This is accomplished by accessing the individual load test scenarios that are represented by LoadTestScenario objects that are contained in the LoadTest Scenarios collection.

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

Working with Load Tests Overview

Working with Load Tests

How to: Create a Load Test Plug-In

About Scenarios

How to: Insert Additional Scenarios to an Existing Load Test