TestResultId Class
Represents a unique identifier for a test result.
Inheritance Hierarchy
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 | |
---|---|---|
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. | |
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 | |
---|---|---|
ExecutionId | Gets the text execution ID. | |
ExecutionIdString | Gets a string representation of the test execution ID. | |
IsRootLevel | Gets a value that indicates whether the associated test result is the root test result. | |
IsRunLevel | Gets a value that indicates whether the associated test result is for a test run. | |
ParentExecId | Gets the test execution ID for the parent test result. | |
ParentExecIdString | Gets a string representation of the test execution ID for the parent test result. | |
RunId | Gets the ID for the test run. | |
RunIdString | Gets a string representation of the ID for the test run. | |
TestId | Gets the ID for the test. | |
TestIdString | Gets a string representation of the ID for the test. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the provided object is equal to the current object. (Overrides Object.Equals(Object).) | |
GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsValid | Returns a value that indicates whether this test result ID is valid. | |
Load | Loads an instance of this class from the provided XML element by using the provided parameters. | |
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. | |
Save | Saves this object in the provided XML element. | |
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.