Share via


ITestRun Interface

Represents an execution of a set of tests against a specific build.

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

Syntax

'Declaration
Public Interface ITestRun _
    Inherits IIdentifiable(Of Integer), IAttachmentOwner, ITestMessageLogOwner,  _
    INotifyPropertyChanged
public interface ITestRun : IIdentifiable<int>, 
    IAttachmentOwner, ITestMessageLogOwner, INotifyPropertyChanged
public interface class ITestRun : IIdentifiable<int>, 
    IAttachmentOwner, ITestMessageLogOwner, INotifyPropertyChanged
type ITestRun =  
    interface
        interface IIdentifiable<int>
        interface IAttachmentOwner
        interface ITestMessageLogOwner
        interface INotifyPropertyChanged
    end
public interface ITestRun extends IIdentifiable<int>, IAttachmentOwner, ITestMessageLogOwner, INotifyPropertyChanged

The ITestRun type exposes the following members.

Properties

  Name Description
Public property Attachments Gets the collection of attachments. (Inherited from IAttachmentOwner.)
Public property BuildConfigurationId Gets the build configuration ID for this test run.
Public property BuildDirectory Gets or sets the path of the output of the build.
Public property BuildFlavor Gets or sets the flavor of the build (that is, "Release" or "Debug").
Public property BuildNumber Gets or sets the name of the build.
Public property BuildPlatform Gets or sets the platform of the build.
Public property BuildUri Gets or sets the uniform resource identifier (URI) of the build against which this test run was executed.
Public property Comment Gets or sets a string containing all comments entered by those analyzing the test run.
Public property Controller Gets the name of the controller for this test run.
Public property DateCompleted Gets or sets the date and time that the last test completed.
Public property DateCreated Gets the date that this test run was created.
Public property DateDue Gets the date that this test run is due.
Public property DateStarted Gets or sets the date that this test run was started.
Public property ErrorMessage Gets or sets a short description of a failure, if any.
Public property Id Gets the identifier. (Inherited from IIdentifiable<TKey>.)
Public property IsAutomated Gets or sets a value that indicates whether the test run contains tests that should be automatically executed.
Public property IsBvt Gets or sets a value that indicates whether this test run is a build verification test.
Public property IsDirty Gets a value that indicates whether this test run has been changed since the last save operation.
Public property Iteration Gets or sets the number of times that this test run has been executed.
Public property LastUpdated Gets the date and time that this test run was last updated.
Public property LastUpdatedBy Gets the identity of the last person to update this test run.
Public property Owner Gets or sets the identity of the person who owns this test run.
Public property PostProcessState Gets the state of any post-process activities that occur on the server.
Public property Project Gets the team project for this run.
Public property Revision Gets the incremental revision number that is used for concurrency control.
Public property State Gets the current state of this test run.
Public property Statistics Gets the statistics that detail the number of test cases in various states in this test run.
Public property TestEnvironmentId Gets the GUID for the test environment for this test run.
Public property TestMessageLogEntries Gets a collection of test message log entries. (Inherited from ITestMessageLogOwner.)
Public property TestPlanId Gets the ID of the test plan that contains this test run.
Public property TestSettings Gets the test settings that are used for this test execution.
Public property TestSettingsId Gets the ID for the test settings that are used for this test execution.
Public property Title Gets or sets the title of this test run.
Public property Type Gets the type of this test run.
Public property Version Gets the client version that ran the test.

Top

Methods

  Name Description
Public method Abort() Aborts this test run.
Public method Abort(TestRunAbortOptions) Aborts this test run by using the given options.
Public method AddTest Adds a test case and configuration to the test run.
Public method AddTestPoint Adds a new test point to this test run.
Public method CopyTestSettings Copies the provided test settings object to this test run.
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 for a test result from the provided byte array.
Public method CreateLogEntry Creates a test message log entry and adds it to the TestMessageLogEntryCollection. (Inherited from ITestMessageLogOwner.)
Public method Delete Removes this test run and its results from the server.
Public method QueryResults Returns a collection that contains all test results for this test run.
Public method QueryResultsByOutcome Returns a collection of test results for this test run that has the provided test outcome.
Public method QueryResultsByOwner Returns a collection of test results for this test run that has the provided test owner.
Public method QueryResultsByStatus Returns a collection of test results for this test run that has the provided test status.
Public method Refresh Updates this test run by using new data from the server.
Public method RefreshLogEntries Refreshes the log entries from the server. (Inherited from ITestMessageLogOwner.)
Public method Save Writes new or updated test run data to the server.
Public method SaveLogEntries Saves changed log entries to the server. (Inherited from ITestMessageLogOwner.)

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

IIdentifiable<TKey>

IAttachmentOwner

ITestMessageLogOwner

INotifyPropertyChanged