共用方式為


LoadTestGoalBasedLoadProfile.StopAdjustingAtGoal 屬性

true 表示測試必須停止調整使用者負載。false 表示視需要在測試過程中持續調整使用者負載,使指定的效能計數器值保持在目標範圍內。

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

語法

'宣告
Public Property StopAdjustingAtGoal As Boolean
public bool StopAdjustingAtGoal { get; set; }
public:
property bool StopAdjustingAtGoal {
    bool get ();
    void set (bool value);
}
member StopAdjustingAtGoal : bool with get, set
function get StopAdjustingAtGoal () : boolean
function set StopAdjustingAtGoal (value : boolean)

屬性值

型別:System.Boolean
如果目前執行中的測試已經停止調整使用者負載,則為 true。如果將會在測試過程中持續調整使用者負載,則為 false。

範例

true 值表示,如果在三次連續取樣間隔中,計數器的值都保持在目標範圍內,則在接下來的負載測試中,負載都會保持不變。

.NET Framework 安全性

請參閱

參考

LoadTestGoalBasedLoadProfile 類別

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間