WebTestContext.WebTestUserId Property

Gets a value that uniquely identifies a simulated virtual user when you run the Web performance test in a load test.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Property WebTestUserId As Integer
public int WebTestUserId { get; internal set; }
public:
property int WebTestUserId {
    int get ();
    internal: void set (int value);
}
member WebTestUserId : int with get, internal set
function get WebTestUserId () : int
internal function set WebTestUserId (value : int)

Property Value

Type: System.Int32
A virtual user identification number.

Remarks

Warning

The unique value assigned to WebTestUserId for a simulated user is valid only when it is used with one load test scenario and one load test agent. The WebTestUserId value is not unique across multiple agents.

.NET Framework Security

See Also

Reference

WebTestContext Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Change History

Date

History

Reason

March 2011

Added note about WebTestUserId not being unique when used across multiple agents.

Customer feedback.