ISharedStepResult 接口

 

表示执行一个共享步骤的结果。事件 ID 都对应于调用该共享 ste SharedStepReference 的事件 ID。

命名空间:   Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(Microsoft.TeamFoundation.TestManagement.Client.dll 中)

语法

public interface ISharedStepResult : ITestActionResult, ITestResult, 
    IAttachmentOwner, INotifyPropertyChanged
public interface class ISharedStepResult : ITestActionResult, 
    ITestResult, IAttachmentOwner, INotifyPropertyChanged
type ISharedStepResult = 
    interface
        interface ITestActionResult
        interface ITestResult
        interface IAttachmentOwner
        interface INotifyPropertyChanged
    end
Public Interface ISharedStepResult
    Inherits ITestActionResult, ITestResult, IAttachmentOwner, INotifyPropertyChanged

属性

名称 说明
System_CAPS_pubproperty ActionId

获取或设置此操作结果的标识符。(从 ITestActionResult 继承。)

System_CAPS_pubproperty Actions

Gets a collection of action results for each step or component in the associated shared step.

System_CAPS_pubproperty Attachments

获取附件的集合。(从 IAttachmentOwner 继承。)

System_CAPS_pubproperty CollectorsEnabled

获取为此结果启用的数据收集器的列表。(从 ITestResult 继承。)

System_CAPS_pubproperty Comment

获取或设置由分析此结果的人员输入的累积注释。(从 ITestResult 继承。)

System_CAPS_pubproperty DateCompleted

获取或设置测试的完成日期。(从 ITestResult 继承。)

System_CAPS_pubproperty DateCreated

获取或设置测试创建的日期。(从 ITestResult 继承。)

System_CAPS_pubproperty DateStarted

获取或设置测试启动的日期。(从 ITestResult 继承。)

System_CAPS_pubproperty Duration

获取或设置要执行测试所用的时间。这不包括执行暂停期间的时间。(从 ITestResult 继承。)

System_CAPS_pubproperty ErrorMessage

获取或设置失败的说明(如果测试未通过)。(从 ITestResult 继承。)

System_CAPS_pubproperty Outcome

获取或设置测试结果的指示。(从 ITestResult 继承。)

System_CAPS_pubproperty SharedStepId

Gets the work item ID of the associated shared step.

System_CAPS_pubproperty SharedStepRevision

用于共享步骤的版本生成这些结果。

方法

名称 说明
System_CAPS_pubmethod CreateAttachment(String)

依据文件创建附件。(从 IAttachmentOwner 继承。)

System_CAPS_pubmethod CreateAttachment(String, SourceFileAction)

依据文件创建附件,可以选择在上载之后删除源文件。(从 IAttachmentOwner 继承。)

System_CAPS_pubmethod GetSharedStep()

Returns the associated shared step definition from the server.

事件

名称 说明
System_CAPS_pubevent AttachmentUploadCompleted

此事件在附件上载完成时引发。(从 IAttachmentOwner 继承。)

System_CAPS_pubevent PropertyChanged

(从 INotifyPropertyChanged 继承。)

备注

这里不会更新任何内容;请不要在这里添加材料。

请参阅

Microsoft.TeamFoundation.TestManagement.Client 命名空间

返回页首