TestResultId Class

Represents a unique identifier for a test result.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.Common.TestResultId

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class TestResultId _
    Implements IVerifiable, IXmlTestStore
[SerializableAttribute]
public sealed class TestResultId : IVerifiable, 
    IXmlTestStore
[SerializableAttribute]
public ref class TestResultId sealed : IVerifiable, 
    IXmlTestStore
[<Sealed>]
[<SerializableAttribute>]
type TestResultId =  
    class
        interface IVerifiable
        interface IXmlTestStore
    end
public final class TestResultId implements IVerifiable, IXmlTestStore

The TestResultId type exposes the following members.

Constructors

  Name Description
Public method TestResultId(Guid, TestExecId, TestExecId, TestId) Initializes a new instance of the TestResultId class by using the provided test run ID, execution ID, parent execution ID, and test ID.
Public method TestResultId(String, String, String, String) Initializes a new instance of the TestResultId class by using the provided test run ID, text execution ID, the parent text execution ID, and the test ID.

Top

Properties

  Name Description
Public property ExecutionId Gets the text execution ID.
Public property ExecutionIdString Gets a string representation of the test execution ID.
Public property IsRootLevel Gets a value that indicates whether the associated test result is the root test result.
Public property IsRunLevel Gets a value that indicates whether the associated test result is for a test run.
Public property ParentExecId Gets the test execution ID for the parent test result.
Public property ParentExecIdString Gets a string representation of the test execution ID for the parent test result.
Public property RunId Gets the ID for the test run.
Public property RunIdString Gets a string representation of the ID for the test run.
Public property TestId Gets the ID for the test.
Public property TestIdString Gets a string representation of the ID for the test.

Top

Methods

  Name Description
Public method Equals Determines whether the provided object is equal to the current object. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsValid Returns a value that indicates whether this test result ID is valid.
Public method Load Loads an instance of this class from the provided XML element by using the provided parameters.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member RunLevelId Returns the test result ID for the test result from the test run that generated the associated test result by using the provided child test run ID.
Public method Save Saves this object in the provided XML element.
Public method ToString Returns a string representation of this test result ID. (Overrides Object.ToString().)

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace

IVerifiable

IXmlTestStore