共用方式為


ITestActionResult 介面

表示單一測試動作的結果。

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

語法

'宣告
Public Interface ITestActionResult _
    Inherits ITestResult, IAttachmentOwner, INotifyPropertyChanged
public interface ITestActionResult : ITestResult, 
    IAttachmentOwner, INotifyPropertyChanged
public interface class ITestActionResult : ITestResult, 
    IAttachmentOwner, INotifyPropertyChanged
type ITestActionResult =  
    interface 
        interface ITestResult 
        interface IAttachmentOwner 
        interface INotifyPropertyChanged 
    end
public interface ITestActionResult extends ITestResult, IAttachmentOwner, INotifyPropertyChanged

ITestActionResult 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 ActionId 取得或設定這個動作結果的識別碼。
公用屬性 Attachments 取得附件的集合。 (繼承自 IAttachmentOwner)。
公用屬性 CollectorsEnabled 取得針對這個結果啟用的資料收集器清單。 (繼承自 ITestResult)。
公用屬性 Comment 取得或設定分析這個結果的項目所輸入的累積註解。 (繼承自 ITestResult)。
公用屬性 DateCompleted 取得或設定測試的完成日期。 (繼承自 ITestResult)。
公用屬性 DateCreated 取得或設定測試的建立日期。 (繼承自 ITestResult)。
公用屬性 DateStarted 取得或設定這個測試的開始日期。 (繼承自 ITestResult)。
公用屬性 Duration 取得或設定執行測試所花費的時間。這不包括執行暫停期間的時間。 (繼承自 ITestResult)。
公用屬性 ErrorMessage 取得或設定失敗的描述 (如果測試失敗)。 (繼承自 ITestResult)。
公用屬性 Outcome 取得或設定測試結果的表示。 (繼承自 ITestResult)。

回頁首

方法

  名稱 描述
公用方法 CreateAttachment(String) 從檔案建立附件。 (繼承自 IAttachmentOwner)。
公用方法 CreateAttachment(String, SourceFileAction) 從檔案建立附件,上載之後選擇性地刪除原始檔。 (繼承自 IAttachmentOwner)。

回頁首

事件

  名稱 描述
公用事件 AttachmentUploadCompleted 這個事件會在附件上傳完成時引發。 (繼承自 IAttachmentOwner)。
公用事件 PropertyChanged 當屬性值變更時發生。 (繼承自 INotifyPropertyChanged)。

回頁首

請參閱

參考

Microsoft.TeamFoundation.TestManagement.Client 命名空間

ITestAction