Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 class TestResult : TestResultMessage

The TestResult type exposes the following members.

  NameDescription
Protected methodTestResult()Initializes a new instance of the TestResult class.
Protected methodTestResult(TestResult)Initializes a new instance of the TestResult class by copying the provided test result.
Protected methodTestResult(SerializationInfo, StreamingContext)Initializes a new instance of the TestResult class from XML serialization.
Public methodTestResult(String, Guid, ITestElement)Initializes a new instance of the TestResult class by using the provided computer name, test run ID, and test element.
Public methodTestResult(ComputerInfo, Guid, ITestElement) Obsolete. Initializes a new instance of the TestResult class by using the provided computer information, test run ID, and test element.
Top
  NameDescription
Public propertyCollectorDataEntriesGets a read-only list of data entries that are provided by diagnostic data adapters during the test run.
Public propertyComputerNameGets the name of the computer that executed the associated test run or test. (Inherited from TestResultMessage.)
Public propertyDataCollectorMessagesGets a read-only list of errors and warnings that are provided by diagnostic data adapters during the test.
Public propertyDebugTraceGets or sets the debug trace information.
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 propertyErrorInfoGets or sets information about the most recent error.
Public propertyErrorMessageGets or sets the most recent error message.
Public propertyErrorStackTraceGets or sets the stack trace information that precedes an error.
Public propertyHasPassedGets a value that indicates whether the associated test for this test result successfully executed.
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 propertyOutcomeGets or sets an object by using details about the outcome of the associated test.
Public propertyOutcomeTextGets the outcome of the test as a string.
Public propertyResultFilesGets a read-only list of paths to the test result files that are sorted in ascending order.
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 propertyStdErrGets or sets the stderr data that is generated by the test.
Public propertyStdOutGets or sets the stdout data that is generated by the test.
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 propertyTestGets or sets the associated test.
Public propertyTestDescriptionGets the description of the test.
Public propertyTestListCategoryIdGets the ID of the list category for this test result.
Public propertyTestListCategoryIdStringGets the ID of the list category for this test result as a string.
Public propertyTestNameGets or sets the name of the associated test. (Inherited from TestResultMessage.)
Public propertyTestResultsDirectoryGets the absolute path of the folder on the server where this test result is stored.
Public propertyTestRunGets the associated test run.
Public propertyTestTypeGets or sets the type for the associated test. (Inherited from TestResultMessage.)
Public propertyTextMessagesGets an array of text messages in the test.
Public propertyTimerResultsGets or sets an array of timer results.
Public propertyTraceInfoGets the trace information 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). (Inherited from TestResultMessage.)
Public propertyWorkItemIdsGets a list of work item IDs that are associated with the test.
Top
  NameDescription
Public methodAddTextMessageAdds a text message to this test result.
Public methodCloneReturns a copy of this test result. (Overrides TestResultMessage.Clone().)
Public methodEqualsDetermines whether the provided object is equal to the current object. (Inherited from TestResultMessage.)
Public methodFillDataRowFills the provided data row by using property values from this test result for serialization.
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 the provided serialization information by using the data needed 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 parameters. (Overrides TestResultMessage.Load(XmlElement, XmlTestStoreParameters).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSaveSaves this object in the provided XML element. (Overrides TestResultMessage.Save(XmlElement, XmlTestStoreParameters).)
Public methodToStringReturns a string representation of this test result. (Overrides TestResultMessage.ToString().)
Top
  NameDescription
Public fieldStatic memberComputerNamePropertyNameReturns "ComputerName".
Public fieldStatic memberDebugTracePropertyNameReturns "DebugTrace".
Public fieldStatic memberDisplayTextPropertyNameReturns "DisplayText".
Public fieldStatic memberDurationPropertyNameReturns "Duration".
Public fieldStatic memberEndTimePropertyNameReturns "EndTime".
Public fieldStatic memberErrorMessagePropertyNameReturns "ErrorMessage".
Public fieldStatic memberErrorStackTracePropertyNameReturns "ErrorStackTrace".
Public fieldStatic memberHasPassedPropertyNameReturns "HasPassed".
Public fieldStatic memberLongTextPropertyNameReturns "LongText".
Protected fieldm_categoryIdReturns "categoryId".
Protected fieldm_debugTraceReturns "debugTrace".
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_errorInfoReturns "errorInfo".
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_outcomeReturns "outcome".
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_stdErrReturns "stdErr".
Protected fieldm_stdOutReturns "stdOut".
Protected fieldm_testNameReturns the value of the TestName property. (Inherited from TestResultMessage.)
Protected fieldm_testTypeReturns the value of the TestType property. (Inherited from TestResultMessage.)
Protected fieldm_textMessagesReturns "textMessages".
Protected fieldm_timerResultsReturns "timerResults".
Protected fieldm_traceInfoReturns "traceInfo".
Protected fieldm_workItemIdsReturns "workItemIds".
Public fieldStatic memberObjectColumnNameReturns "objectcolumn".
Public fieldStatic memberOutcomePropertyNameReturns "Outcome".
Public fieldStatic memberOutcomeTextPropertyNameReturns "OutcomeText".
Public fieldStatic memberStartTimePropertyNameReturns "StartTime".
Public fieldStatic memberStdErrPropertyNameReturns "StdErr".
Public fieldStatic memberStdOutPropertyNameReturns "StdOut".
Public fieldStatic memberStoragePropertyNameReturns "Storage".
Public fieldStatic memberTestNamePropertyNameReturns "TestName".
Public fieldStatic memberTestRunParameterNameReturns "TestRun".
Public fieldStatic memberTestTypePropertyNameReturns "TestType".
Public fieldStatic memberTraceInfoPropertyNameReturns "TraceInfo".
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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.