WebTestRequest.ResponseTimeGoal 屬性

取得或設定特定網頁的回應時間目標。

命名空間:  Microsoft.VisualStudio.TestTools.WebTesting
組件:  Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

語法

'宣告
Public Property ResponseTimeGoal As Single
    Get
    Set
public float ResponseTimeGoal { get; set; }
public:
property float ResponseTimeGoal {
    float get ();
    void set (float value);
}
member ResponseTimeGoal : float32 with get, set
function get ResponseTimeGoal () : float
function set ResponseTimeGoal (value : float)

屬性值

型別:System.Single
表示特定網頁之回應時間目標的值。此項是以秒為計算單位。預設值為零秒,表示這個網頁沒有目標。

備註

在負載測試中,會針對具有指定之 ResponseTimeGoal 的網頁,以表示網頁實際回應時間小於或等於目標之次數的百分比形式進行回報。

.NET Framework 安全性

請參閱

參考

WebTestRequest 類別

Microsoft.VisualStudio.TestTools.WebTesting 命名空間