表示测试用例的状态执行测试运行。
命名空间: 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)
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
ActionRecording | Gets the action recording of the test case. |
![]() |
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. |
![]() |
Attachments | 获取附件的集合。(从 IAttachmentOwner 继承。) |
![]() |
BuildNumber | Name of the build. |
![]() |
CollectorsEnabled | 获取为此结果启用的数据收集器的列表。(从 ITestResult 继承。) |
![]() |
Comment | 获取或设置由分析此结果的人员输入的累积注释。(从 ITestResult 继承。) |
![]() |
ComputerName | Gets or sets the name of the computer where the test was executed. |
![]() |
DateCompleted | 获取或设置测试的完成日期。(从 ITestResult 继承。) |
![]() |
DateCreated | 获取或设置测试创建的日期。(从 ITestResult 继承。) |
![]() |
DateStarted | 获取或设置测试启动的日期。(从 ITestResult 继承。) |
![]() |
Duration | 获取或设置要执行测试所用的时间。这不包括执行暂停期间的时间。(从 ITestResult 继承。) |
![]() |
ErrorMessage | 获取或设置失败的说明(如果测试未通过)。(从 ITestResult 继承。) |
![]() |
FailureType | 已过时。 If the test failed, gets the type of failure. |
![]() |
FailureTypeId | |
![]() |
Id | 获取标识符。(从 IIdentifiable<TKey> 继承。) |
![]() |
Implementation | Gets the automated test for this result. |
![]() |
IsFinished | Gets a value that indicates whether the test has been run. |
![]() |
Iterations | Gets a collection of detailed results for each iteration of the test. |
![]() |
LastUpdated | Gets the date and time that this result was last updated. |
![]() |
LastUpdatedBy | Gets the identity of the person who last updated this result. |
![]() |
LastUpdatedByName | Last person to update result |
![]() |
Outcome | 获取或设置测试结果的指示。(从 ITestResult 继承。) |
![]() |
Owner | Gets the identity of the person who is responsible for running or investigating the test. |
![]() |
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. |
![]() |
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. |
![]() |
Priority | Gets or sets the priority to execute or analyze the test. |
![]() |
ResetCount | Gets the number of times that this result has been reset. |
![]() |
ResolutionStateId | Gets a numeric identifier for tracking the investigation of finished tests. |
![]() |
Revision | Gets the revision number of this result for concurrency control. |
![]() |
RunBy | Gets the identity of the person who executed the test. |
![]() |
RunByName | User who executed the test. |
![]() |
RunByTeamFoundationId | User who executed the test. |
![]() |
State | Gets the status of the test. |
![]() |
TestCaseArea | Gets the area path of the test case. |
![]() |
TestCaseId | Gets the ID of the test case that is being executed. |
![]() |
TestCaseRevision | Gets the revision of the test case that should be used. |
![]() |
TestCaseTitle | Gets the title of the test case. |
![]() |
TestConfigurationId | Gets the ID of the configuration against which this test was executed. |
![]() |
TestConfigurationName | Gets the name of the configuration of the test that is currently being executed. |
![]() |
TestPointId | Gets the ID of the test point against which this test was executed. |
![]() |
TestResultId | Gets the ID of this test result, which is unique in the test run. |
![]() |
TestRunId | Gets the ID of the test run that contains this result. |
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
AssociateWorkItem(WorkItem) | Links the given work item to this test result. |
![]() |
CreateAttachment(Byte[], Int32, Int32) | Creates an attachment to this test result by using the given byte array, location, and length. |
![]() |
CreateAttachment(String) | 依据文件创建附件。(从 IAttachmentOwner 继承。) |
![]() |
CreateAttachment(String, SourceFileAction) | 依据文件创建附件,可以选择在上载之后删除源文件。(从 IAttachmentOwner 继承。) |
![]() |
CreateIteration(Int32) | Creates a new iteration result. |
![]() |
DisassociateWorkItem(WorkItem) | Removes the link between the given work item and this test result. |
![]() |
GetTestCase() | Retrieves the test case data from the server as of the time that the test case result was created. |
![]() |
GetTestRun() | Retrieves the test-run information from the server. |
![]() |
QueryAssociatedWorkItemArtifacts() | Retrieves an array of work item artifacts that is linked to this test case result. |
![]() |
QueryAssociatedWorkItems() | Retrieves an array of IDs from the server for work items that are linked to this test case result. |
![]() |
Refresh() | Retrieves updated test result information from the server. Any local changes are discarded. |
![]() |
Reset() | Clears any test result information and causes the test to be run again. |
![]() |
Save() | Uploads updated test result information to the server. |
![]() |
Save(Boolean) | Uploads updated test result information to the server, optionally uploading the attachments in the background. |
事件
| 名称 | 说明 | |
|---|---|---|
![]() |
AttachmentUploadCompleted | 此事件在附件上载完成时引发。(从 IAttachmentOwner 继承。) |
![]() |
PropertyChanged | (从 INotifyPropertyChanged 继承。) |
备注
这里不会更新任何内容;请不要在这里添加材料。
请参阅
Microsoft.TeamFoundation.TestManagement.Client 命名空间
返回页首
.jpeg)
.gif)
.gif)