Share via


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
Public property ActionRecording Gets the action recording of the test case.
Public property 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.
Public property Attachments Gets the collection of attachments. (Inherited from IAttachmentOwner.)
Public property BuildNumber Name of the build.
Public property CollectorsEnabled Gets a list of the data collectors that are enabled for this result. (Inherited from ITestResult.)
Public property Comment Gets or sets the accumulated comments that were entered by those who analyzed this result. (Inherited from ITestResult.)
Public property ComputerName Gets or sets the name of the computer where the test was executed.
Public property DateCompleted Gets or sets the date that the test was completed. (Inherited from ITestResult.)
Public property DateCreated Gets or sets the date that the test was created. (Inherited from ITestResult.)
Public property DateStarted Gets or sets the date that the test was started. (Inherited from ITestResult.)
Public property 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.)
Public property ErrorMessage Gets or sets a description of the failure, if the test failed. (Inherited from ITestResult.)
Public property FailureType If the test failed, gets the type of failure.
Public property Id Gets the identifier. (Inherited from IIdentifiable<TKey>.)
Public property Implementation Gets the automated test for this result.
Public property IsFinished Gets a value that indicates whether the test has been run.
Public property Iterations Gets a collection of detailed results for each iteration of the test.
Public property LastUpdated Gets the date and time that this result was last updated.
Public property LastUpdatedBy Gets the identity of the person who last updated this result.
Public property LastUpdatedByName Last person to update result
Public property Outcome Gets or sets an indication of the outcome of the test. (Inherited from ITestResult.)
Public property Owner Gets the identity of the person who is responsible for running or investigating the test.
Public property 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.
Public property 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.
Public property Priority Gets or sets the priority to execute or analyze the test.
Public property ResetCount Gets the number of times that this result has been reset.
Public property ResolutionStateId Gets a numeric identifier for tracking the investigation of finished tests.
Public property Revision Gets the revision number of this result for concurrency control.
Public property RunBy Gets the identity of the person who executed the test.
Public property RunByName User who executed the test.
Public property RunByTeamFoundationId User who executed the test.
Public property State Gets the status of the test.
Public property TestCaseArea Gets the area path of the test case.
Public property TestCaseId Gets the ID of the test case that is being executed.
Public property TestCaseRevision Gets the revision of the test case that should be used.
Public property TestCaseTitle Gets the title of the test case.
Public property TestConfigurationId Gets the ID of the configuration against which this test was executed.
Public property TestConfigurationName Gets the name of the configuration of the test that is currently being executed.
Public property TestPointId Gets the ID of the test point against which this test was executed.
Public property TestResultId Gets the ID of this test result, which is unique in the test run.
Public property TestRunId Gets the ID of the test run that contains this result.

Top

Methods

  Name Description
Public method AssociateWorkItem Links the given work item to this test result.
Public method CreateAttachment(String) Creates an attachment from a file. (Inherited from IAttachmentOwner.)
Public method CreateAttachment(String, SourceFileAction) Creates an attachment from a file, optionally deleting the source file after uploading. (Inherited from IAttachmentOwner.)
Public method CreateAttachment(array<Byte[], Int32, Int32) Creates an attachment to this test result by using the given byte array, location, and length.
Public method CreateIteration Creates a new iteration result.
Public method DisassociateWorkItem Removes the link between the given work item and this test result.
Public method GetTestCase Retrieves the test case data from the server as of the time that the test case result was created.
Public method GetTestRun Retrieves the test-run information from the server.
Public method QueryAssociatedWorkItemArtifacts Retrieves an array of work item artifacts that is linked to this test case result.
Public method QueryAssociatedWorkItems Retrieves an array of IDs from the server for work items that are linked to this test case result.
Public method Refresh Retrieves updated test result information from the server. Any local changes are discarded.
Public method Reset Clears any test result information and causes the test to be run again.
Public method Save() Uploads updated test result information to the server.
Public method Save(Boolean) Uploads updated test result information to the server, optionally uploading the attachments in the background.

Top

Events

  Name Description
Public event AttachmentUploadCompleted This event is raised when the attachment upload is completed. (Inherited from IAttachmentOwner.)
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

See Also

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace