表示单个测试操作的结果。
命名空间:  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 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | ActionId | 获取或设置此操作结果的标识符。 | 
| .gif) | Attachments | 获取附件的集合。 (继承自 IAttachmentOwner。) | 
| .gif) | CollectorsEnabled | 获取为此结果启用的数据收集器的列表。 (继承自 ITestResult。) | 
| .gif) | Comment | 获取或设置由分析此结果的人员输入的累积注释。 (继承自 ITestResult。) | 
| .gif) | DateCompleted | 获取或设置测试的完成日期。 (继承自 ITestResult。) | 
| .gif) | DateCreated | 获取或设置测试创建的日期。 (继承自 ITestResult。) | 
| .gif) | DateStarted | 获取或设置测试启动的日期。 (继承自 ITestResult。) | 
| .gif) | Duration | 获取或设置要执行测试所用的时间。这不包括执行暂停期间的时间。 (继承自 ITestResult。) | 
| .gif) | ErrorMessage | 获取或设置失败的说明(如果测试未通过)。 (继承自 ITestResult。) | 
| .gif) | Outcome | 获取或设置测试结果的指示。 (继承自 ITestResult。) | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | CreateAttachment(String) | 依据文件创建附件。 (继承自 IAttachmentOwner。) | 
| .gif) | CreateAttachment(String, SourceFileAction) | 依据文件创建附件,可以选择在上载之后删除源文件。 (继承自 IAttachmentOwner。) | 
页首
事件
| 名称 | 说明 | |
|---|---|---|
| .gif) | AttachmentUploadCompleted | 此事件在附件上载完成时引发。 (继承自 IAttachmentOwner。) | 
| .gif) | PropertyChanged | 在更改属性值时发生。 (继承自 INotifyPropertyChanged。) | 
页首