ITestResult Interface

Provides a base interface for results from test cases, test actions, and test iterations.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

public interface ITestResult : IAttachmentOwner, 

The ITestResult type exposes the following members.

Public propertyAttachmentsGets the collection of attachments. (Inherited from IAttachmentOwner.)
Public propertyCollectorsEnabledGets a list of the data collectors that are enabled for this result.
Public propertyCommentGets or sets the accumulated comments that were entered by those who analyzed this result.
Public propertyDateCompletedGets or sets the date that the test was completed.
Public propertyDateCreatedGets or sets the date that the test was created.
Public propertyDateStartedGets or sets the date that the test was started.
Public propertyDurationGets or sets the time that was spent to execute the test. This does not include the time during which the execution was paused.
Public propertyErrorMessageGets or sets a description of the failure, if the test failed.
Public propertyOutcomeGets or sets an indication of the outcome of the test.

Public methodCreateAttachment(String)Creates an attachment from a file. (Inherited from IAttachmentOwner.)
Public methodCreateAttachment(String, SourceFileAction)Creates an attachment from a file, optionally deleting the source file after uploading. (Inherited from IAttachmentOwner.)

Public eventAttachmentUploadCompletedThis event is raised when the attachment upload is completed. (Inherited from IAttachmentOwner.)
Public eventPropertyChangedOccurs when a property value changes. (Inherited from INotifyPropertyChanged.)

This interface supports the object model for Test Case management (TCM) in Visual Studio. This interface is not intended for you to implement in a custom class, but you can use this interface in a custom class if a TCM object returns an internal implementation.

Community Additions