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.

TestRun Class

 

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

Namespace:   Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

System::Object
  Microsoft.VisualStudio.TestTools.Common::TestRun

[SerializableAttribute]
public ref class TestRun sealed : ISerializable, ICloneable, 
	IVisiblePropertyProvider, IVerifiable, IPersistable, IXmlTestStore

NameDescription
System_CAPS_pubpropertyAutoSaveResults

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

System_CAPS_pubpropertyBuildFlavor

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

System_CAPS_pubpropertyBuildPlatform

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

System_CAPS_pubpropertyContainsManualTest

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

System_CAPS_pubpropertyCreated

Gets the date and time when this test was created.

System_CAPS_pubpropertyFinished

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

System_CAPS_pubpropertyId

Gets the ID of the test that is executed.

System_CAPS_pubpropertyName

Gets or sets the name of the test run.

System_CAPS_pubpropertyQueued

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

System_CAPS_pubpropertyResult

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

System_CAPS_pubpropertyResultFileName

Gets or sets the file name of the result file.

System_CAPS_pubpropertyResultFilePath

Gets or sets the path of the result file.

System_CAPS_pubpropertyRunConfiguration

Gets or sets the configuration for the test run.

System_CAPS_pubpropertyRunUser

Gets or sets the user of this test run.

System_CAPS_pubpropertyStarted

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

System_CAPS_pubpropertyTests

Gets the root level tests.

System_CAPS_pubpropertyUserData

Gets or sets the user data object.

System_CAPS_pubpropertyVisibleProperties

Gets the properties of the test run.

NameDescription
System_CAPS_pubmethodClone()

Returns a clone of the test object.

System_CAPS_pubmethodCountTestCases()

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

System_CAPS_pubmethodEquals(Object^)

Determines whether the provided TestRun object is equal to the current object.(Overrides Object::Equals(Object^).)

System_CAPS_pubmethodGetHashCode()

Returns the hash code of the ID of the test run. (Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetInnerTests(TestExecId^)

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

System_CAPS_pubmethodGetObjectData(SerializationInfo^, StreamingContext)

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

System_CAPS_pubmethodGetResultFilesDirectory(TestResult^)

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

System_CAPS_pubmethodGetTestElement(TestExecId^)

Returns the test element that has the specified execution ID.

System_CAPS_pubmethodGetTestElement(TestExecId^, TestId^)

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

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsValid()

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

System_CAPS_pubmethodLoad(XmlElement^, XmlTestStoreParameters^)

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

System_CAPS_pubmethodPrepareToPersist()

Prepares the fields for setting by XML persistence.

System_CAPS_pubmethodRecoverFromPersistence()

Restores the element map after the persistence.

System_CAPS_pubmethodSave(XmlElement^, XmlTestStoreParameters^)

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

System_CAPS_pubmethodToString()

Returns a string representation of the test run.(Overrides Object::ToString().)

This class implements ISerializable, ICloneable, IPersistable, IVerifiable and IVisiblePropertyProvider. Whenever a new field is added, it must be added to the ISerializable methods.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: