ITestCaseResult Interface
Represents the status of a test case that is executed against a test run.
Namespace: Microsoft.TeamFoundation.TestManagement.Client
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
'Declaration
Public Interface ITestCaseResult _
Inherits ITestResult, IAttachmentOwner, INotifyPropertyChanged, IIdentifiable(Of TestCaseResultIdentifier)
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 extends ITestResult, IAttachmentOwner, INotifyPropertyChanged, IIdentifiable<TestCaseResultIdentifier>
The ITestCaseResult type exposes the following members.
Properties
Name | Description | |
---|---|---|
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 | Gets the collection of attachments. (Inherited from IAttachmentOwner.) | |
BuildNumber | Name of the build. | |
CollectorsEnabled | Gets a list of the data collectors that are enabled for this result. (Inherited from ITestResult.) | |
Comment | Gets or sets the accumulated comments that were entered by those who analyzed this result. (Inherited from ITestResult.) | |
ComputerName | Gets or sets the name of the computer where the test was executed. | |
DateCompleted | Gets or sets the date that the test was completed. (Inherited from ITestResult.) | |
DateCreated | Gets or sets the date that the test was created. (Inherited from ITestResult.) | |
DateStarted | Gets or sets the date that the test was started. (Inherited from ITestResult.) | |
Duration | Gets or sets the time that was spent to execute the test. This does not include the time during which the execution was paused. (Inherited from ITestResult.) | |
ErrorMessage | Gets or sets a description of the failure, if the test failed. (Inherited from ITestResult.) | |
FailureType | If the test failed, gets the type of failure. | |
Id | Gets the identifier. (Inherited from 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 | Gets or sets an indication of the outcome of the test. (Inherited from 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. |
Top
Methods
Name | Description | |
---|---|---|
AssociateWorkItem | Links the given work item to this test result. | |
CreateAttachment(String) | Creates an attachment from a file. (Inherited from IAttachmentOwner.) | |
CreateAttachment(String, SourceFileAction) | Creates an attachment from a file, optionally deleting the source file after uploading. (Inherited from IAttachmentOwner.) | |
CreateAttachment(array<Byte[], Int32, Int32) | Creates an attachment to this test result by using the given byte array, location, and length. | |
CreateIteration | Creates a new iteration result. | |
DisassociateWorkItem | 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. |
Top
Events
Name | Description | |
---|---|---|
AttachmentUploadCompleted | This event is raised when the attachment upload is completed. (Inherited from IAttachmentOwner.) | |
PropertyChanged | Occurs when a property value changes. (Inherited from INotifyPropertyChanged.) |
Top