Provides a base class for test results.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.Common.TestMessage
    Microsoft.VisualStudio.TestTools.Common.TestResultMessage
      Microsoft.VisualStudio.TestTools.Common.DebugRequestMessage
      Microsoft.VisualStudio.TestTools.Common.RunOutputTestResultMessage
      Microsoft.VisualStudio.TestTools.Common.TestResult
      Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage
      Microsoft.VisualStudio.TestTools.Common.TextTestResultMessage
Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class TestResultMessage _
    Inherits TestMessage _
    Implements ICloneable, IVisiblePropertyProvider, IVerifiable, IXmlTestStore
[SerializableAttribute]
public class TestResultMessage : TestMessage, 
    ICloneable, IVisiblePropertyProvider, IVerifiable, IXmlTestStore
[SerializableAttribute]
public ref class TestResultMessage : public TestMessage, 
    ICloneable, IVisiblePropertyProvider, IVerifiable, IXmlTestStore
[<SerializableAttribute>]
type TestResultMessage =  
    class 
        inherit TestMessage 
        interface ICloneable 
        interface IVisiblePropertyProvider 
        interface IVerifiable 
        interface IXmlTestStore 
    end
public class TestResultMessage extends TestMessage implements ICloneable, IVisiblePropertyProvider, IVerifiable, IXmlTestStore
The TestResultMessage type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | TestResultMessage() | Infrastructure. Initializes a new instance of the TestResultMessage class. | 
| .gif) | TestResultMessage(TestResultMessage) | Infrastructure. Initializes a new instance of the TestResultMessage class by using the provided test result message. | 
| .gif) | TestResultMessage(SerializationInfo, StreamingContext) | Infrastructure. Initializes a new instance of the TestResultMessage class from serialized XML data. | 
| .gif) | TestResultMessage(String, Guid, TestMessageKind) | Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, and test result kind. | 
| .gif) | TestResultMessage(ComputerInfo, Guid, TestMessageKind) | Obsolete. Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, and test result kind. | 
| .gif) | TestResultMessage(String, Guid, ITestElement, TestMessageKind) | Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, test element, and test result kind. | 
| .gif) | TestResultMessage(ComputerInfo, Guid, ITestElement, TestMessageKind) | Obsolete. Initializes a new instance of the TestResultMessage class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | ComputerName | Gets the name of the computer that executed the associated test run or test. | 
| .gif) | DisplayText | Gets the text to display in the user interface of Visual Studio Application Lifecycle Management (ALM). | 
| .gif) | Duration | Gets or sets the time that was spent to execute the associated test or test run. | 
| .gif) | EndTime | Gets or sets the time that the execution ended. | 
| .gif) | Id | Gets or sets the ID for this test result message. | 
| .gif) | IsRunLevel | Gets a value that indicates whether this result is for a test run and not for a test. | 
| .gif) | LoadTestAgentNames | Gets a comma-delimited list of the names of machines where the associated load test is installed. | 
| .gif) | LongText | Gets the value of the DisplayText property. | 
| .gif) | MessageKind | Gets or sets the kind of test result message for this associated test result message. | 
| .gif) | SpoolMessage | Gets or sets a value that determines whether this message will be spooled into the persisted test results. | 
| .gif) | StartTime | Gets or sets the time that the associated test run or test started. | 
| .gif) | Storage | Gets or sets the relative path of a folder where all files that are associated with the test are stored on the server. | 
| .gif) | SystemException | Gets or sets the most recent exception that was encountered during the associated test run or test. | 
| .gif) | TestName | Gets or sets the name of the associated test. | 
| .gif) | TestType | Gets or sets the type for the associated test. | 
| .gif) | VisibleProperties | Gets a collection of the properties in this test result message that will be visible in the user interface of Visual Studio Application Lifecycle Management (ALM). | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Clone | Returns a deep copy of this test result message. | 
| .gif) | Equals | Determines whether the provided object is equal to the current object. (Overrides Object.Equals(Object).) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode.) | 
| .gif) | GetObjectData | Populates a SerializationInfo by using the data that is required to serialize the target object. (Overrides TestMessage.GetObjectData(SerializationInfo, StreamingContext).) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IsValid | Determines whether this test result message is valid. (Overrides TestMessage.IsValid().) | 
| .gif) | Load | Loads an instance of this class from the provided XML element by using the provided XML store parameters. | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | Save | Saves this object in the provided XML element. | 
| .gif) | ToString | Returns a string representation of this test result message. (Overrides Object.ToString.) | 
Top
Fields
| Name | Description | |
|---|---|---|
| .gif) | m_duration | Infrastructure. Returns the value of the Duration property. | 
| .gif) | m_endTime | Returns the value of the EndTime property. | 
| .gif) | m_exception | Returns the value of the SystemException property. | 
| .gif) | m_id | Returns the value of the ID property. | 
| .gif) | m_messageKind | Returns the value of the MessageKind property. | 
| .gif) | m_spoolMessage | Returns the value of the SpoolMessage property. | 
| .gif) | m_startTime | Returns the value of the StartTime property. | 
| .gif) | m_testName | Returns the value of the TestName property. | 
| .gif) | m_testType | Returns the value of the TestType property. | 
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.