TextTestResultMessage Class
Collapse the table of content
Expand the table of content

TextTestResultMessage Class

Provides a message that is used by tests to report additional information that the user wants to see in the result.

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

public class TextTestResultMessage : TestResultMessage, 

The TextTestResultMessage type exposes the following members.

Protected methodTextTestResultMessage(SerializationInfo, StreamingContext)Initializes a new instance of the TextTestResultMessage class from serialized XML data by using the provided serialization information and the streaming context.
Public methodTextTestResultMessage(Guid, ITestElement, String)Initializes a new instance of the TextTestResultMessage class by using the ID of the test run, the test element, and the message.

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

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

Protected fieldm_durationInfrastructure. Returns the value of the Duration property. (Inherited from TestResultMessage.)
Protected fieldm_endTimeReturns the value of the EndTime property. (Inherited from TestResultMessage.)
Protected fieldm_exceptionReturns the value of the SystemException property. (Inherited from TestResultMessage.)
Protected fieldm_idReturns the value of the ID() property. (Inherited from TestResultMessage.)
Protected fieldm_messageKindReturns the value of the MessageKind property. (Inherited from TestResultMessage.)
Protected fieldm_spoolMessageReturns the value of the SpoolMessage property. (Inherited from TestResultMessage.)
Protected fieldm_startTimeReturns the value of the StartTime property. (Inherited from TestResultMessage.)
Protected fieldm_testNameReturns the value of the TestName property. (Inherited from TestResultMessage.)
Protected fieldm_testTypeReturns the value of the TestType property. (Inherited from TestResultMessage.)

The message is sent in a text format by using the WriteLine method.

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

Community Additions

© 2015 Microsoft