Partager via


TestSelectedEventArgs Class

Contains the arguments for the TestSelected event.

Inheritance Hierarchy

Object
  EventArgs
    Microsoft.VisualStudio.TestTools.LoadTesting.TestSelectedEventArgs

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

Syntax

'Declaration
Public Class TestSelectedEventArgs _
    Inherits EventArgs
public class TestSelectedEventArgs : EventArgs
public ref class TestSelectedEventArgs : public EventArgs
type TestSelectedEventArgs =  
    class 
        inherit EventArgs 
    end
public class TestSelectedEventArgs extends EventArgs

The TestSelectedEventArgs type exposes the following members.

Properties

  Name Description
Public property IsInitializeTest Gets a value that indicates whether the selected test is the InitializeTest that was specified in the test mix of the load test scenario.
Public property IsTerminateTest Gets a value that indicates whether the selected test is the TerminateTest that was specified in the test mix of the load test scenario.
Public property ScenarioName Gets the scenario name that contains the test that is selected.
Public property TestName Gets or sets the name of the test that is selected.
Public property UserContext Gets the LoadTestUserContext that represents the virtual user who is running the selected test.

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 the default hash function. (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

Remarks

TestSelectedEventArgs contains a reference to the test that is starting and the scenario that it is starting in.

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