Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public interface ITestRun : ITestMessageLogOwner, ITestRunBase, 
	IIdentifiable<int>, IAttachmentOwner, INotifyPropertyChanged

NameDescription
System_CAPS_pubpropertyAttachments

Gets the collection of attachments.(Inherited from IAttachmentOwner.)

System_CAPS_pubpropertyBuildConfigurationId

Gets the build configuration ID for this test run.

System_CAPS_pubpropertyBuildDirectory

Gets or sets the path of the output of the build.

System_CAPS_pubpropertyBuildFlavor

Gets or sets the flavor of the build (that is, "Release" or "Debug").

System_CAPS_pubpropertyBuildNumber

Name of the build.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyBuildPlatform

Gets or sets the platform of the build.

System_CAPS_pubpropertyBuildUri

Name (as a URI) of the build the run was executed against.

As an example: new Uri("vstfs:///Build/Build/1")(Inherited from ITestRunBase.)

System_CAPS_pubpropertyComment

Comments entered by those analyzing the run.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyController

The name of the controller of this run(Inherited from ITestRunBase.)

System_CAPS_pubpropertyDateCompleted

Date the last test completed.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyDateCreated

Date the run was created.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyDateDue

Gets the date that this test run is due.

System_CAPS_pubpropertyDateStarted

Date the run was started.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyErrorMessage

Gets or sets a short description of a failure, if any.

System_CAPS_pubpropertyId

Gets the identifier.(Inherited from IIdentifiable<TKey>.)

System_CAPS_pubpropertyIncompleteTests

The number of tests that are not completed.

System_CAPS_pubpropertyIsAutomated

Gets or sets a value that indicates whether the test run contains tests that should be automatically executed.

System_CAPS_pubpropertyIsBvt

Gets or sets a value that indicates whether this test run is a build verification test.

System_CAPS_pubpropertyIsDirty

Returns true if the test run has been changed since the last Save().(Inherited from ITestRunBase.)

System_CAPS_pubpropertyIteration

Gets or sets the number of times that this test run has been executed.

System_CAPS_pubpropertyLastUpdated

Date the run was last modified (title or owner set).(Inherited from ITestRunBase.)

System_CAPS_pubpropertyLastUpdatedBy

Last person to update run(Inherited from ITestRunBase.)

System_CAPS_pubpropertyLastUpdatedByName

Last person to update run(Inherited from ITestRunBase.)

System_CAPS_pubpropertyLinkedWorkItemCount

The total number of bugs associated with the test results.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyNotApplicableTests

System_CAPS_pubpropertyOwner

User who started the run.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyOwnerName

User who started the run.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyOwnerTeamFoundationId

User who started the run.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyPassedTests

The number of tests that passed.

System_CAPS_pubpropertyPostProcessState

Gets the state of any post-process activities that occur on the server.

System_CAPS_pubpropertyProject

Gets the team project for this run.

System_CAPS_pubpropertyRevision

Revision number of TestRun for concurrency control(Inherited from ITestRunBase.)

System_CAPS_pubpropertyState

Gets the current state of this test run.

System_CAPS_pubpropertyStatistics

Gets the statistics that detail the number of test cases in various states in this test run.

System_CAPS_pubpropertyTestEnvironmentId

The test environment for this run(Inherited from ITestRunBase.)

System_CAPS_pubpropertyTestMessageLogEntries

Gets a collection of test message log entries.(Inherited from ITestMessageLogOwner.)

System_CAPS_pubpropertyTestPlanId

Returns the ID of the test plan that contains this run or 0 if this is an ad-hoc run.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyTestSettings

The test settings being used for this test run execution. Null if the run has no test settings.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyTestSettingsId

ID of the public test settings being used for this test run.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyTitle

Title of the associated run template.(Inherited from ITestRunBase.)

System_CAPS_pubpropertyTotalTests

The total number of tests in this run.

System_CAPS_pubpropertyType

Gets the type of this test run.

System_CAPS_pubpropertyUnanalyzedTests

The number of tests that are not analyzed.

System_CAPS_pubpropertyVersion

Gets the client version that ran the test.

NameDescription
System_CAPS_pubmethodAbort()

Aborts this test run.

System_CAPS_pubmethodAbort(TestRunAbortOptions)

Aborts this test run by using the given options.

System_CAPS_pubmethodAddTest(Int32, Int32, TeamFoundationIdentity)

Adds a test case and configuration to the test run.

System_CAPS_pubmethodAddTest(Int32, String, String, ITmiTestImplementation)

Creates a new test result in the test run against a test configuration. Does not require an existing test case for the test result.

Must be followed by a Save().

System_CAPS_pubmethodAddTest(String)

Adds a new test with given name.

Must be followed by a Save()

System_CAPS_pubmethodAddTestPoint(ITestPoint, TeamFoundationIdentity)

Adds a new test point to this test run.

System_CAPS_pubmethodAddTestPoints(IEnumerable<ITestPoint>, TeamFoundationIdentity)

Adds new test points to the test run.

Must be followed by a Save().

The test result objects returned by this call are not usable until after the save.

System_CAPS_pubmethodCopyTestSettings(ITestSettings)

Copy the test settings and associate it to the test run.(Inherited from ITestRunBase.)

System_CAPS_pubmethodCreateAttachment(Byte[], Int32, Int32)

Creates an attachment for a Test Result from a byte array.(Inherited from ITestRunBase.)

System_CAPS_pubmethodCreateAttachment(String)

Creates an attachment from a file. (Inherited from IAttachmentOwner.)

System_CAPS_pubmethodCreateAttachment(String, SourceFileAction)

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

System_CAPS_pubmethodCreateLogEntry(String, TestMessageLogEntryLevel)

Creates a test message log entry and adds it to the TestMessageLogEntryCollection.(Inherited from ITestMessageLogOwner.)

System_CAPS_pubmethodDelete()

Removes the given test run and its results from the server.(Inherited from ITestRunBase.)

System_CAPS_pubmethodQueryResults()

Returns a collection that contains all test results for this test run.

System_CAPS_pubmethodQueryResults(Boolean)

Returns all test results for this run.

System_CAPS_pubmethodQueryResultsByOutcome(TestOutcome)

Returns a collection of test results for this test run that has the provided test outcome.

System_CAPS_pubmethodQueryResultsByOwner(TeamFoundationIdentity)

Returns a collection of test results for this test run that has the provided test owner.

System_CAPS_pubmethodQueryResultsByStatus(TestResultState)

Returns a collection of test results for this test run that has the provided test status.

System_CAPS_pubmethodRefresh()

Updates the run with new data from the server.(Inherited from ITestRunBase.)

System_CAPS_pubmethodRefresh(DateTime)

Updates the test run with the new data from the server only if there exists a test run with newer timestamp than lastUpdated parameter Returns true if test run was updated with the new data and false otherwise

System_CAPS_pubmethodRefreshLogEntries()

Refreshes the log entries from the server.(Inherited from ITestMessageLogOwner.)

System_CAPS_pubmethodSave()

Writes the new or updated test run to the server.(Inherited from ITestRunBase.)

System_CAPS_pubmethodSaveLogEntries()

Saves changed log entries to the server.(Inherited from ITestMessageLogOwner.)

NameDescription
System_CAPS_pubeventAttachmentUploadCompleted

This event is raised when the attachment upload is completed.(Inherited from IAttachmentOwner.)

System_CAPS_pubeventPropertyChanged

(Inherited from INotifyPropertyChanged.)

No content here will be updated; please do not add material here.

Return to top
Show: