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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。