Export (0) Print
Expand All

TestRun Class

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

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

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

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

The TestRun type exposes the following members.

  NameDescription
Public propertyAutoSaveResultsGets or sets a Boolean value that indicates whether the test results have been auto-saved.
Public propertyBuildFlavorGets or sets the build flavor for which the test was run. The tests can be run for "Debug" or "Release".
Public propertyBuildPlatformGets or sets the build platform for which the test was run.
Public propertyContainsManualTestGets a Boolean value that indicates whether this test is manual.
Public propertyCreatedGets the date and time when this test was created.
Public propertyFinishedGets or sets the date and time when this test was completed.
Public propertyIdGets the ID of the test that is executed.
Public propertyIdStringGets the string representation of the TestRun ID.
Public propertyNameGets or sets the name of the test run.
Public propertyQueuedGets or sets the date and time when the test run was queued.
Public propertyResultGets the test result that is used that contains the run level results.
Public propertyResultFileNameGets or sets the file name of the result file.
Public propertyResultFilePathGets or sets the path of the result file.
Public propertyRunConfigurationGets or sets the configuration for the test run.
Public propertyRunUserGets or sets the user of this test run.
Public propertyStartedGets or sets the date and time when the test run started.
Public propertyTestsGets the root level tests.
Public propertyUserDataGets or sets the user data object.
Public propertyVisiblePropertiesGets the properties of the test run.
Top

  NameDescription
Public methodCloneReturns a clone of the test object.
Public methodCountTestCasesReturns the number of test cases that are contained in this run and in all aggregation tests.
Public methodEqualsDetermines whether the provided TestRun object is equal to the current object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code of the ID of the test run. (Overrides Object.GetHashCode().)
Public methodGetInnerTestsRetrieves the inner tests for the test that has the specified execution ID.
Public methodGetObjectDataPopulates a SerializationInfo by using the data that are required to serialize the target object.
Public methodGetResultFilesDirectoryReturns a directory that consists of dependent files for the specified test result.
Public methodGetTestElement(TestExecId)Returns the test element that has the specified execution ID.
Public methodGetTestElement(TestExecId, TestId)Returns the test element that has the specified ID and the execution ID of its parent.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsValidReturns a Boolean value that indicates whether the test run is valid.
Public methodLoadLoads an instance of this class from the provided XML element by using the provided parameters.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPrepareToPersistPrepares the fields for setting by XML persistence.
Public methodRecoverFromPersistenceRestores the element map after the persistence.
Public methodSaveSaves this object in the provided XML element by using the provided parameters.
Public methodToStringReturns a string representation of the test run. (Overrides Object.ToString().)
Top

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.

Community Additions

ADD
Show:
© 2014 Microsoft