TestRun Class

Definition

Provides a snapshot of a test job that was taken when it was executed. This class cannot be inherited.

public ref class TestRun sealed : ICloneable, Microsoft::VisualStudio::TestTools::Common::IPersistable, Microsoft::VisualStudio::TestTools::Common::IVerifiable, Microsoft::VisualStudio::TestTools::Common::IVisiblePropertyProvider, Microsoft::VisualStudio::TestTools::Common::Xml::IXmlTestStore, System::Runtime::Serialization::ISerializable
[System.Serializable]
public sealed class TestRun : ICloneable, Microsoft.VisualStudio.TestTools.Common.IPersistable, Microsoft.VisualStudio.TestTools.Common.IVerifiable, Microsoft.VisualStudio.TestTools.Common.IVisiblePropertyProvider, Microsoft.VisualStudio.TestTools.Common.Xml.IXmlTestStore, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type TestRun = class
    interface ISerializable
    interface ICloneable
    interface IVisiblePropertyProvider
    interface IVerifiable
    interface IPersistable
    interface IXmlTestStore
Public NotInheritable Class TestRun
Implements ICloneable, IPersistable, ISerializable, IVerifiable, IVisiblePropertyProvider, IXmlTestStore
Inheritance
TestRun
Attributes
Implements

Properties

AutoSaveResults

Gets or sets a Boolean value that indicates whether the test results have been auto-saved.

BuildFlavor

Gets or sets the build flavor for which the test was run. The tests can be run for "Debug" or "Release".

BuildPlatform

Gets or sets the build platform for which the test was run.

ContainsManualTest

Gets a Boolean value that indicates whether this test is manual.

Created

Gets the date and time when this test was created.

Entries
Finished

Gets or sets the date and time when this test was completed.

Id

Gets the ID of the test that is executed.

Name

Gets or sets the name of the test run.

Queued

Gets or sets the date and time when the test run was queued.

Result

Gets the test result that is used that contains the run level results.

ResultFileName

Gets or sets the file name of the result file.

ResultFilePath

Gets or sets the path of the result file.

RunConfiguration

Gets or sets the configuration for the test run.

RunUser

Gets or sets the user of this test run.

Started

Gets or sets the date and time when the test run started.

Tests

Gets the root level tests.

UserData

Gets or sets the user data object.

VisibleProperties

Gets the properties of the test run.

Methods

Clone()

Returns a clone of the test object.

CountTestCases()

Returns the number of test cases that are contained in this run and in all aggregation tests.

Equals(Object)

Determines whether the provided TestRun object is equal to the current object.

GetHashCode()

Returns the hash code of the ID of the test run.

GetInnerTests(TestExecId)

Retrieves the inner tests for the test that has the specified execution ID.

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo by using the data that are required to serialize the target object.

GetResultFilesDirectory(TestResult)

Returns a directory that consists of dependent files for the specified test result.

GetTestElement(TestExecId)

Returns the test element that has the specified execution ID.

GetTestElement(TestExecId, TestId)

Returns the test element that has the specified ID and the execution ID of its parent.

IsValid()

Returns a Boolean value that indicates whether the test run is valid.

Load(XmlElement, XmlTestStoreParameters)

Loads an instance of this class from the provided XML element by using the provided parameters.

PrepareToPersist()

Prepares the fields for setting by XML persistence.

RecoverFromPersistence()

Restores the element map after the persistence.

Save(XmlElement, XmlTestStoreParameters)

Saves this object in the provided XML element by using the provided parameters.

ToString()

Returns a string representation of the test run.

Applies to