共用方式為


ITestPoint 介面

表示為測試計劃一部分之組態套件中測試案例的執行狀態。

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

語法

'宣告
Public Interface ITestPoint _
    Inherits IIdentifiable(Of Integer), INotifyPropertyChanged, ITestPointProperties
public interface ITestPoint : IIdentifiable<int>, 
    INotifyPropertyChanged, ITestPointProperties
public interface class ITestPoint : IIdentifiable<int>, 
    INotifyPropertyChanged, ITestPointProperties
type ITestPoint =  
    interface 
        interface IIdentifiable<int>
        interface INotifyPropertyChanged 
        interface ITestPointProperties 
    end
public interface ITestPoint extends IIdentifiable<int>, INotifyPropertyChanged, ITestPointProperties

ITestPoint 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 AssignedTo 取得已獲指派這個測試點之使用者的身分識別。
公用屬性 AssignedToName 使用者這點指派。
公用屬性 AssignedToTeamFoundationId 使用者這點指派。
公用屬性 Comment (繼承自 ITestPointProperties)。
公用屬性 ConfigurationId 取得這個點所測試之 ITestConfiguration 的識別碼。
公用屬性 ConfigurationName 這個點表示 ITestConfiguration 的名稱。
公用屬性 HasCachedProperties 判斷點物件是否有來自伺服器的任何快取的屬性。
公用屬性 History 取得 ITestPointProperties 物件的集合,這些物件表示這個測試點在一段時間的屬性歷程清單。
公用屬性 Id 取得識別碼。 (繼承自 IIdentifiable<TKey>)。
公用屬性 IsTestCaseAutomated 傳回與 TestCaseWorkItem.IsAutomated 相同,不過,可以使用快取的屬性回答問題
公用屬性 Item 從內部快取屬性資料表存取點的測試案例的屬性,可以
公用屬性 LastUpdated (繼承自 ITestPointProperties)。
公用屬性 LastUpdatedBy (繼承自 ITestPointProperties)。
公用屬性 LastUpdatedByName (繼承自 ITestPointProperties)。
公用屬性 MostRecentFailureType 已過時。 (繼承自 ITestPointProperties)。
公用屬性 MostRecentFailureTypeId (繼承自 ITestPointProperties)。
公用屬性 MostRecentResolutionStateId (繼承自 ITestPointProperties)。
公用屬性 MostRecentResult 取得最新的測試案例結果。
公用屬性 MostRecentResultId (繼承自 ITestPointProperties)。
公用屬性 MostRecentResultOutcome (繼承自 ITestPointProperties)。
公用屬性 MostRecentResultState (繼承自 ITestPointProperties)。
公用屬性 MostRecentRunId (繼承自 ITestPointProperties)。
公用屬性 Plan 取得相關聯的測試計劃。
公用屬性 Revision (繼承自 ITestPointProperties)。
公用屬性 State (繼承自 ITestPointProperties)。
公用屬性 SuiteId 取得含有這個測試點之測試套件的識別碼。
公用屬性 TestCaseExists 取得值,這個值表示目前測試案例是否存在於伺服器上。
公用屬性 TestCaseId 取得相關聯測試案例的 ID。
公用屬性 TestCaseWorkItem 取得與相關聯測試案例相關聯的工作項目。
公用屬性 UserData 取得或設定使用者已建立與這個測試點關聯的任意物件。

回頁首

方法

  名稱 描述
公用方法 Block ITestPointProperties.State 屬性設定為 TestPointState.NotReady,可以封鎖這個測試點。
公用方法 QueryAssociatedWorkItemsFromResults 擷取與這個測試點之對應結果相關聯之工作項目的整數 ID 陣列。
公用方法 Refresh 使用伺服器中的資料,更新這個物件。
公用方法 Save 將這個物件保持於伺服器上。
公用方法 Unblock ITestPointProperties.State 屬性設定為 TestPointState.Ready,可以解除封鎖這個測試點。

回頁首

事件

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

回頁首

請參閱

參考

Microsoft.TeamFoundation.TestManagement.Client 命名空間

ITestConfiguration

IIdentifiable<TKey>

INotifyPropertyChanged

ITestPointProperties