Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TestResultMessage Class

 

Provides a base class for test results.

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


[SerializableAttribute]
public ref class TestResultMessage : TestMessage, ICloneable, 
	IVisiblePropertyProvider, IVerifiable, IXmlTestStore

NameDescription
System_CAPS_protmethodTestResultMessage()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the TestResultMessage class.

System_CAPS_pubmethodTestResultMessage(ComputerInfo^, Guid, ITestElement^, TestMessageKind)

Obsolete.Initializes a new instance of the TestResultMessage class.

System_CAPS_pubmethodTestResultMessage(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.

System_CAPS_protmethodTestResultMessage(SerializationInfo^, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the TestResultMessage class from serialized XML data.

System_CAPS_pubmethodTestResultMessage(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.

System_CAPS_pubmethodTestResultMessage(String^, Guid, TestMessageKind)

Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, and test result kind.

System_CAPS_protmethodTestResultMessage(TestResultMessage^)

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the TestResultMessage class by using the provided test result message.

NameDescription
System_CAPS_pubpropertyComputerName

Gets the name of the computer that executed the associated test run or test.

System_CAPS_pubpropertyDisplayText

Gets the text to display in the user interface of Visual Studio Application Lifecycle Management (ALM).

System_CAPS_pubpropertyDuration

Gets or sets the time that was spent to execute the associated test or test run.

System_CAPS_pubpropertyEndTime

Gets or sets the time that the execution ended.

System_CAPS_pubpropertyId

Gets or sets the ID for this test result message.

System_CAPS_pubpropertyIsRunLevel

Gets a value that indicates whether this result is for a test run and not for a test.

System_CAPS_pubpropertyLongText

Gets the value of the DisplayText property.

System_CAPS_pubpropertyMessageKind

Gets or sets the kind of test result message for this associated test result message.

System_CAPS_pubpropertySpoolMessage

Gets or sets a value that determines whether this message will be spooled into the persisted test results.

System_CAPS_pubpropertyStartTime

Gets or sets the time that the associated test run or test started.

System_CAPS_pubpropertyStorage

Gets or sets the relative path of a folder where all files that are associated with the test are stored on the server.

System_CAPS_pubpropertySystemException

Gets or sets the most recent exception that was encountered during the associated test run or test.

System_CAPS_pubpropertyTestName

Gets or sets the name of the associated test.

System_CAPS_pubpropertyTestType

Gets or sets the type for the associated test.

System_CAPS_pubpropertyVisibleProperties

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).

NameDescription
System_CAPS_pubmethodClone()

Returns a deep copy of this test result message.

System_CAPS_pubmethodEquals(Object^)

Determines whether the provided object is equal to the current object.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()
System_CAPS_pubmethodGetObjectData(SerializationInfo^, StreamingContext)

Populates a SerializationInfo by using the data that is required to serialize the target object.(Overrides TestMessage::GetObjectData(SerializationInfo^, StreamingContext).)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsValid()

Determines whether this test result message is valid.(Overrides TestMessage::IsValid().)

System_CAPS_pubmethodLoad(XmlElement^, XmlTestStoreParameters^)

Loads an instance of this class from the provided XML element by using the provided XML store parameters.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSave(XmlElement^, XmlTestStoreParameters^)

Saves this object in the provided XML element.

System_CAPS_pubmethodToString()

Returns a string representation of this test result message.(Overrides Object::ToString().)

NameDescription
System_CAPS_protfieldm_duration

This API supports the product infrastructure and is not intended to be used directly from your code. Returns the value of the Duration property.

System_CAPS_protfieldm_endTime

Returns the value of the EndTime property.

System_CAPS_protfieldm_exception

Returns the value of the SystemException property.

System_CAPS_protfieldm_id
System_CAPS_protfieldm_messageKind

Returns the value of the MessageKind property.

System_CAPS_protfieldm_spoolMessage

Returns the value of the SpoolMessage property.

System_CAPS_protfieldm_startTime

Returns the value of the StartTime property.

System_CAPS_protfieldm_testName

Returns the value of the TestName property.

System_CAPS_protfieldm_testType

Returns the value of the TestType property.

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

Return to top
Show: