ITestCaseResult 接口

 

表示测试用例的状态执行测试运行。

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

语法

public interface ITestCaseResult : ITestResult, IAttachmentOwner, 
    INotifyPropertyChanged, IIdentifiable<TestCaseResultIdentifier>
public interface class ITestCaseResult : ITestResult, IAttachmentOwner, 
    INotifyPropertyChanged, IIdentifiable<TestCaseResultIdentifier^>
type ITestCaseResult = 
    interface
        interface ITestResult
        interface IAttachmentOwner
        interface INotifyPropertyChanged
        interface IIdentifiable<TestCaseResultIdentifier>
    end
Public Interface ITestCaseResult
    Inherits ITestResult, IAttachmentOwner, INotifyPropertyChanged,
    IIdentifiable(Of TestCaseResultIdentifier)

属性

名称 说明
System_CAPS_pubproperty ActionRecording

Gets the action recording of the test case.

System_CAPS_pubproperty ArtifactUri

The uniform resource identifier (URI) that is used internally by Visual Studio Application Lifecycle Management (ALM) to link this result with other objects in Visual Studio ALM.

System_CAPS_pubproperty Attachments

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

System_CAPS_pubproperty BuildNumber

Name of the build.

System_CAPS_pubproperty CollectorsEnabled

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

System_CAPS_pubproperty Comment

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

System_CAPS_pubproperty ComputerName

Gets or sets the name of the computer where the test was executed.

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 FailureType

已过时。 If the test failed, gets the type of failure.

System_CAPS_pubproperty FailureTypeId

System_CAPS_pubproperty Id

获取标识符。(从 IIdentifiable<TKey> 继承。)

System_CAPS_pubproperty Implementation

Gets the automated test for this result.

System_CAPS_pubproperty IsFinished

Gets a value that indicates whether the test has been run.

System_CAPS_pubproperty Iterations

Gets a collection of detailed results for each iteration of the test.

System_CAPS_pubproperty LastUpdated

Gets the date and time that this result was last updated.

System_CAPS_pubproperty LastUpdatedBy

Gets the identity of the person who last updated this result.

System_CAPS_pubproperty LastUpdatedByName

Last person to update result

System_CAPS_pubproperty Outcome

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

System_CAPS_pubproperty Owner

Gets the identity of the person who is responsible for running or investigating the test.

System_CAPS_pubproperty OwnerName

User responsible for running or investigating the test.

For runs created from points, this is initialized to the test point owner.

Otherwise, this is initialized to the test case owner.

May be changed during the run and will not be kept up to date if the test case or point owners change afterward.

System_CAPS_pubproperty OwnerTeamFoundationId

User responsible for running or investigating the test.

For runs created from points, this is initialized to the test point owner.

Otherwise, this is initialized to the test case owner.

May be changed during the run and will not be kept up to date if the test case or point owners change afterward.

System_CAPS_pubproperty Priority

Gets or sets the priority to execute or analyze the test.

System_CAPS_pubproperty ResetCount

Gets the number of times that this result has been reset.

System_CAPS_pubproperty ResolutionStateId

Gets a numeric identifier for tracking the investigation of finished tests.

System_CAPS_pubproperty Revision

Gets the revision number of this result for concurrency control.

System_CAPS_pubproperty RunBy

Gets the identity of the person who executed the test.

System_CAPS_pubproperty RunByName

User who executed the test.

System_CAPS_pubproperty RunByTeamFoundationId

User who executed the test.

System_CAPS_pubproperty State

Gets the status of the test.

System_CAPS_pubproperty TestCaseArea

Gets the area path of the test case.

System_CAPS_pubproperty TestCaseId

Gets the ID of the test case that is being executed.

System_CAPS_pubproperty TestCaseRevision

Gets the revision of the test case that should be used.

System_CAPS_pubproperty TestCaseTitle

Gets the title of the test case.

System_CAPS_pubproperty TestConfigurationId

Gets the ID of the configuration against which this test was executed.

System_CAPS_pubproperty TestConfigurationName

Gets the name of the configuration of the test that is currently being executed.

System_CAPS_pubproperty TestPointId

Gets the ID of the test point against which this test was executed.

System_CAPS_pubproperty TestResultId

Gets the ID of this test result, which is unique in the test run.

System_CAPS_pubproperty TestRunId

Gets the ID of the test run that contains this result.

方法

名称 说明
System_CAPS_pubmethod AssociateWorkItem(WorkItem)

Links the given work item to this test result.

System_CAPS_pubmethod CreateAttachment(Byte[], Int32, Int32)

Creates an attachment to this test result by using the given byte array, location, and length.

System_CAPS_pubmethod CreateAttachment(String)

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

System_CAPS_pubmethod CreateAttachment(String, SourceFileAction)

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

System_CAPS_pubmethod CreateIteration(Int32)

Creates a new iteration result.

System_CAPS_pubmethod DisassociateWorkItem(WorkItem)

Removes the link between the given work item and this test result.

System_CAPS_pubmethod GetTestCase()

Retrieves the test case data from the server as of the time that the test case result was created.

System_CAPS_pubmethod GetTestRun()

Retrieves the test-run information from the server.

System_CAPS_pubmethod QueryAssociatedWorkItemArtifacts()

Retrieves an array of work item artifacts that is linked to this test case result.

System_CAPS_pubmethod QueryAssociatedWorkItems()

Retrieves an array of IDs from the server for work items that are linked to this test case result.

System_CAPS_pubmethod Refresh()

Retrieves updated test result information from the server. Any local changes are discarded.

System_CAPS_pubmethod Reset()

Clears any test result information and causes the test to be run again.

System_CAPS_pubmethod Save()

Uploads updated test result information to the server.

System_CAPS_pubmethod Save(Boolean)

Uploads updated test result information to the server, optionally uploading the attachments in the background.

事件

名称 说明
System_CAPS_pubevent AttachmentUploadCompleted

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

System_CAPS_pubevent PropertyChanged

(从 INotifyPropertyChanged 继承。)

备注

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

请参阅

Microsoft.TeamFoundation.TestManagement.Client 命名空间

返回页首