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.

TestResult Class

 

Represents a base class for test results and represents the results of a test.

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


[SerializableAttribute]
public ref class TestResult : TestResultMessage

NameDescription
System_CAPS_protmethodTestResult()

Initializes a new instance of the TestResult class.

System_CAPS_pubmethodTestResult(ComputerInfo^, Guid, ITestElement^)

Obsolete.Initializes a new instance of the TestResult class by using the provided computer information, test run ID, and test element.

System_CAPS_protmethodTestResult(SerializationInfo^, StreamingContext)

Initializes a new instance of the TestResult class from XML serialization.

System_CAPS_pubmethodTestResult(String^, Guid, ITestElement^)

Initializes a new instance of the TestResult class by using the provided computer name, test run ID, and test element.

System_CAPS_protmethodTestResult(TestResult^)

Initializes a new instance of the TestResult class by copying the provided test result.

NameDescription
System_CAPS_pubpropertyCollectorDataEntries

Gets a read-only list of data entries that are provided by diagnostic data adapters during the test run.

System_CAPS_pubpropertyComputerName

Gets the name of the computer that executed the associated test run or test.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyDataCollectorMessages

Gets a read-only list of errors and warnings that are provided by diagnostic data adapters during the test.

System_CAPS_pubpropertyDebugTrace

Gets or sets the debug trace information.

System_CAPS_pubpropertyDisplayText

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

System_CAPS_pubpropertyDuration

Gets or sets the time that was spent to execute the associated test or test run.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyEndTime

Gets or sets the time that the execution ended.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyErrorInfo

Gets or sets information about the most recent error.

System_CAPS_pubpropertyErrorMessage

Gets or sets the most recent error message.

System_CAPS_pubpropertyErrorStackTrace

Gets or sets the stack trace information that precedes an error.

System_CAPS_pubpropertyHasPassed

Gets a value that indicates whether the associated test for this test result successfully executed.

System_CAPS_pubpropertyId

Gets or sets the ID for this test result message.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyIsRunLevel

Gets a value that indicates whether this result is for a test run and not for a test.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyLongText

Gets the value of the DisplayText property.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyMessageKind

Gets or sets the kind of test result message for this associated test result message.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyOutcome

Gets or sets an object by using details about the outcome of the associated test.

System_CAPS_pubpropertyOutcomeText

Gets the outcome of the test as a string.

System_CAPS_pubpropertyResultFiles

Gets a read-only list of paths to the test result files that are sorted in ascending order.

System_CAPS_pubpropertySpoolMessage

Gets or sets a value that determines whether this message will be spooled into the persisted test results.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyStartTime

Gets or sets the time that the associated test run or test started.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyStdErr

Gets or sets the stderr data that is generated by the test.

System_CAPS_pubpropertyStdOut

Gets or sets the stdout data that is generated by the test.

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.(Inherited from TestResultMessage.)

System_CAPS_pubpropertySystemException

Gets or sets the most recent exception that was encountered during the associated test run or test.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyTest

Gets or sets the associated test.

System_CAPS_pubpropertyTestDescription

Gets the description of the test.

System_CAPS_pubpropertyTestListCategoryId

Gets the ID of the list category for this test result.

System_CAPS_pubpropertyTestName

Gets or sets the name of the associated test.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyTestResultsDirectory

Gets the absolute path of the folder on the server where this test result is stored.

System_CAPS_pubpropertyTestRun

Gets the associated test run.

System_CAPS_pubpropertyTestType

Gets or sets the type for the associated test.(Inherited from TestResultMessage.)

System_CAPS_pubpropertyTextMessages

Gets an array of text messages in the test.

System_CAPS_pubpropertyTimerResults

Gets or sets an array of timer results.

System_CAPS_pubpropertyTraceInfo

Gets the trace information 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).(Inherited from TestResultMessage.)

System_CAPS_pubpropertyWorkItemIds

Gets a list of work item IDs that are associated with the test.

NameDescription
System_CAPS_pubmethodAddTextMessage(String^)

Adds a text message to this test result.

System_CAPS_pubmethodClone()

Returns a copy of this test result.(Overrides TestResultMessage::Clone().)

System_CAPS_pubmethodEquals(Object^)

Determines whether the provided object is equal to the current object.(Inherited from TestResultMessage.)

System_CAPS_pubmethodFillDataRow(DataRow^)

Fills the provided data row by using property values from this test result for serialization.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from TestResultMessage.)

System_CAPS_pubmethodGetObjectData(SerializationInfo^, StreamingContext)

Populates the provided serialization information by using the data needed to serialize the target object.(Overrides TestResultMessage::GetObjectData(SerializationInfo^, StreamingContext).)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsValid()

Determines whether this test result message is valid.(Inherited from TestResultMessage.)

System_CAPS_pubmethodLoad(XmlElement^, XmlTestStoreParameters^)

Loads an instance of this class from the provided XML element by using the provided parameters.(Overrides TestResultMessage::Load(XmlElement^, XmlTestStoreParameters^).)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSave(XmlElement^, XmlTestStoreParameters^)

Saves this object in the provided XML element.(Overrides TestResultMessage::Save(XmlElement^, XmlTestStoreParameters^).)

System_CAPS_pubmethodToString()

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

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticComputerNamePropertyName

Returns "ComputerName".

System_CAPS_pubfieldSystem_CAPS_staticDebugTracePropertyName

Returns "DebugTrace".

System_CAPS_pubfieldSystem_CAPS_staticDisplayTextPropertyName

Returns "DisplayText".

System_CAPS_pubfieldSystem_CAPS_staticDurationPropertyName

Returns "Duration".

System_CAPS_pubfieldSystem_CAPS_staticEndTimePropertyName

Returns "EndTime".

System_CAPS_pubfieldSystem_CAPS_staticErrorMessagePropertyName

Returns "ErrorMessage".

System_CAPS_pubfieldSystem_CAPS_staticErrorStackTracePropertyName

Returns "ErrorStackTrace".

System_CAPS_pubfieldSystem_CAPS_staticHasPassedPropertyName

Returns "HasPassed".

System_CAPS_pubfieldSystem_CAPS_staticLongTextPropertyName

Returns "LongText".

System_CAPS_protfieldm_categoryId

Returns "categoryId".

System_CAPS_protfieldm_debugTrace

Returns "debugTrace".

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.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_endTime

Returns the value of the EndTime property.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_errorInfo

Returns "errorInfo".

System_CAPS_protfieldm_exception

Returns the value of the SystemException property.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_id

Returns the value of the P:Microsoft.VisualStudio.TestTools.Common.TestResultMessage.ID property.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_messageKind

Returns the value of the MessageKind property.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_outcome

Returns "outcome".

System_CAPS_protfieldm_spoolMessage

Returns the value of the SpoolMessage property.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_startTime

Returns the value of the StartTime property.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_stdErr

Returns "stdErr".

System_CAPS_protfieldm_stdOut

Returns "stdOut".

System_CAPS_protfieldm_testName

Returns the value of the TestName property.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_testType

Returns the value of the TestType property.(Inherited from TestResultMessage.)

System_CAPS_protfieldm_textMessages

Returns "textMessages".

System_CAPS_protfieldm_timerResults

Returns "timerResults".

System_CAPS_protfieldm_traceInfo

Returns "traceInfo".

System_CAPS_protfieldm_workItemIds

Returns "workItemIds".

System_CAPS_pubfieldSystem_CAPS_staticObjectColumnName

Returns "objectcolumn".

System_CAPS_pubfieldSystem_CAPS_staticOutcomePropertyName

Returns "Outcome".

System_CAPS_pubfieldSystem_CAPS_staticOutcomeTextPropertyName

Returns "OutcomeText".

System_CAPS_pubfieldSystem_CAPS_staticStartTimePropertyName

Returns "StartTime".

System_CAPS_pubfieldSystem_CAPS_staticStdErrPropertyName

Returns "StdErr".

System_CAPS_pubfieldSystem_CAPS_staticStdOutPropertyName

Returns "StdOut".

System_CAPS_pubfieldSystem_CAPS_staticStoragePropertyName

Returns "Storage".

System_CAPS_pubfieldSystem_CAPS_staticTestNamePropertyName

Returns "TestName".

System_CAPS_pubfieldSystem_CAPS_staticTestRunParameterName

Returns "TestRun".

System_CAPS_pubfieldSystem_CAPS_staticTestTypePropertyName

Returns "TestType".

System_CAPS_pubfieldSystem_CAPS_staticTraceInfoPropertyName

Returns "TraceInfo".

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: