TestRun Class
Provides a snapshot of a test job that was taken when it was executed. This class cannot be inherited.
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | 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.(Overrides Object::Equals(Object^).) |
![]() | GetHashCode() | Returns the hash code of the ID of the test run. (Overrides Object::GetHashCode().) |
![]() | 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. |
![]() | GetType() | (Inherited from Object.) |
![]() | 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.(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.

