共用方式為


ITestController 介面

向 Visual Studio Test Professional 登錄測試控制器。

命名空間:  Microsoft.TeamFoundation.TestManagement.Client
組件:  Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)

語法

'宣告
Public Interface ITestController _
    Inherits IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged
public interface ITestController : IPropertyOwner, 
    IDataErrorInfo, INotifyPropertyChanged
public interface class ITestController : IPropertyOwner, 
    IDataErrorInfo, INotifyPropertyChanged
type ITestController =  
    interface 
        interface IPropertyOwner 
        interface IDataErrorInfo 
        interface INotifyPropertyChanged 
    end
public interface ITestController extends IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged

ITestController 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 Description 取得或設定這個測試控制器的描述。
公用屬性 DisplayName 取得或設定會出現在使用者介面 (UI) 的控制器。
公用屬性 Error 取得錯誤訊息,表示這個物件有什麼錯誤。 (繼承自 IDataErrorInfo)。
公用屬性 GroupId 取得或設定含有這個測試控制器之測試控制器群組的識別碼。
公用屬性 InvalidProperties 取得無效屬性名稱的清單。 (繼承自 IPropertyOwner)。
公用屬性 IsDirty 取得值,這個值表示任何屬性自上次重新整理、擷取或儲存之後是否變更。 (繼承自 IPropertyOwner)。
公用屬性 Item 使用指定的名稱取得屬性的錯誤訊息。 (繼承自 IDataErrorInfo)。
公用屬性 Name 取得或設定這個測試控制器的專案唯一名稱。
公用屬性 Properties 取得名稱/值組的字典,這些名稱/值組表示這個測試控制器的屬性。
公用屬性 State 測試控制器的狀態。
公用屬性 TestEnvironments 取得測試環境 Helper,具有屬於這個測試控制器之測試環境的屬性和方法。

回頁首

方法

  名稱 描述
公用方法 Register 向 Team 專案集合登錄這個測試控制器。
公用方法 Unregister 從 Team 專案集合中移除這個測試控制器的登錄。
公用方法 Update 更新這個測試控制器在 Team 專案集合中的註冊。

回頁首

事件

  名稱 描述
公用事件 PropertyChanged 當屬性值變更時發生。 (繼承自 INotifyPropertyChanged)。

回頁首

請參閱

參考

Microsoft.TeamFoundation.TestManagement.Client 命名空間