共用方式為


ITestRunStatistics 介面

表示測試回合之測試結果的數個層面的計數。

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

語法

'宣告
Public Interface ITestRunStatistics _
    Inherits INotifyPropertyChanged
public interface ITestRunStatistics : INotifyPropertyChanged
public interface class ITestRunStatistics : INotifyPropertyChanged
type ITestRunStatistics =  
    interface 
        interface INotifyPropertyChanged 
    end
public interface ITestRunStatistics extends INotifyPropertyChanged

ITestRunStatistics 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 CompletedTests 取得測試回合中已完成的測試數目。
公用屬性 FailedTests 取得失敗的測試數目。
公用屬性 InconclusiveTests 取得結果不明的測試數目。
公用屬性 InProgressTests 取得進行中的測試數目。
公用屬性 Item[TestOutcome] 取得具有所指定結果的測試數目。
公用屬性 Item[TestResultState] 取得具有所指定結果狀態的測試數目。
公用屬性 PassedTests 取得已通過的測試數目。
公用屬性 PendingTests 取得暫止中的測試數目。
公用屬性 TestResolutionStatistics 取得測試解決狀態統計資料物件的清單。
公用屬性 TotalTests 取得測試回合中的測試總數。

回頁首

方法

  名稱 描述
公用方法 GetStatistics 傳回測試回合統計資料物件的陣列。
公用方法 Refresh 重新整理來自伺服器的統計資料。

回頁首

事件

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

回頁首

備註

這個介面支援 Visual Studio 中的測試案例管理 (TCM) 物件模型。 這個介面不適合在自訂類別中實作。但如果 TCM 物件傳回內部實作,您就可以在自訂類別中使用這個介面。

請參閱

參考

Microsoft.TeamFoundation.TestManagement.Client 命名空間

INotifyPropertyChanged