WebTestContext.WebTestUserId 属性

更新:2011 年 3 月

获取一个值,在负载测试中运行 Web 性能测试时,该值唯一标识模拟的虚拟用户。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
Public Property WebTestUserId As Integer
    Get
    Friend Set
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)

属性值

类型:System.Int32
虚拟用户标识号。

备注

警告

为模拟用户分配给 WebTestUserId 的唯一值只有在与负载测试方案和负载测试代理一起使用时才能生效。 在多个代理间,WebTestUserId 值不唯一。

.NET Framework 安全性

请参见

参考

WebTestContext 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间

修订记录

Date

修订记录

原因

2011 年 3 月

添加了有关在跨多个代理使用时不是唯一的 WebTestUserId 的说明。

客户反馈