Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 class TestResultMessage : TestMessage, 
	ICloneable, IVisiblePropertyProvider, IVerifiable, IXmlTestStore

The TestResultMessage type exposes the following members.

  NameDescription
Protected methodTestResultMessage()Infrastructure. Initializes a new instance of the TestResultMessage class.
Protected methodTestResultMessage(TestResultMessage)Infrastructure. Initializes a new instance of the TestResultMessage class by using the provided test result message.
Protected methodTestResultMessage(SerializationInfo, StreamingContext)Infrastructure. Initializes a new instance of the TestResultMessage class from serialized XML data.
Public methodTestResultMessage(String, Guid, TestMessageKind)Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, and test result kind.
Public methodTestResultMessage(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.
Public methodTestResultMessage(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.
Public methodTestResultMessage(ComputerInfo, Guid, ITestElement, TestMessageKind) Obsolete. Initializes a new instance of the TestResultMessage class.
Top

  NameDescription
Public propertyComputerNameGets the name of the computer that executed the associated test run or test.
Public propertyDisplayTextGets the text to display in the user interface of Visual Studio Application Lifecycle Management (ALM).
Public propertyDurationGets or sets the time that was spent to execute the associated test or test run.
Public propertyEndTimeGets or sets the time that the execution ended.
Public propertyIdGets or sets the ID for this test result message.
Public propertyIsRunLevelGets a value that indicates whether this result is for a test run and not for a test.
Public propertyLoadTestAgentNamesGets a comma-delimited list of the names of machines where the associated load test is installed.
Public propertyLongTextGets the value of the DisplayText property.
Public propertyMessageKindGets or sets the kind of test result message for this associated test result message.
Public propertySpoolMessageGets or sets a value that determines whether this message will be spooled into the persisted test results.
Public propertyStartTimeGets or sets the time that the associated test run or test started.
Public propertyStorageGets or sets the relative path of a folder where all files that are associated with the test are stored on the server.
Public propertySystemExceptionGets or sets the most recent exception that was encountered during the associated test run or test.
Public propertyTestNameGets or sets the name of the associated test.
Public propertyTestTypeGets or sets the type for the associated test.
Public propertyVisiblePropertiesGets 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

  NameDescription
Public methodCloneReturns a deep copy of this test result message.
Public methodEqualsDetermines whether the provided 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 methodGetHashCodeServes as the default hash function. (Overrides Object.GetHashCode.)
Public methodGetObjectDataPopulates a SerializationInfo by using the data that is required to serialize the target object. (Overrides TestMessage.GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsValidDetermines whether this test result message is valid. (Overrides TestMessage.IsValid().)
Public methodLoadLoads an instance of this class from the provided XML element by using the provided XML store parameters.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSaveSaves this object in the provided XML element.
Public methodToStringReturns a string representation of this test result message. (Overrides Object.ToString.)
Top

  NameDescription
Protected fieldm_durationInfrastructure. Returns the value of the Duration property.
Protected fieldm_endTimeReturns the value of the EndTime property.
Protected fieldm_exceptionReturns the value of the SystemException property.
Protected fieldm_idReturns the value of the ID property.
Protected fieldm_messageKindReturns the value of the MessageKind property.
Protected fieldm_spoolMessageReturns the value of the SpoolMessage property.
Protected fieldm_startTimeReturns the value of the StartTime property.
Protected fieldm_testNameReturns the value of the TestName property.
Protected fieldm_testTypeReturns the value of the TestType property.
Top

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