Share via


RunResultAndStatistics Class

Definition

Represents a test result that is used to keep statistics at the test run level.

public ref class RunResultAndStatistics sealed : ICloneable, Microsoft::VisualStudio::TestTools::Common::IVerifiable, Microsoft::VisualStudio::TestTools::Common::Xml::IXmlTestStore
[System.Serializable]
public sealed class RunResultAndStatistics : ICloneable, Microsoft.VisualStudio.TestTools.Common.IVerifiable, Microsoft.VisualStudio.TestTools.Common.Xml.IXmlTestStore
[<System.Serializable>]
type RunResultAndStatistics = class
    interface ICloneable
    interface IVerifiable
    interface IXmlTestStore
Public NotInheritable Class RunResultAndStatistics
Implements ICloneable, IVerifiable, IXmlTestStore
Inheritance
RunResultAndStatistics
Attributes
Implements

Properties

CollectorDataEntries

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

DataCollectorMessages

Gets a read-only list of messages that are provided by the diagnostic data adapters that are used in the associated test run.

DebugTrace

Gets or sets the debug trace data for the associated test run.

ExecutedTestCount

Gets the number of tests that are executed in the associated test run.

FailedTestCount

Gets the number of tests that failed in the associated test run.

HasPassed

Gets a value that indicates whether all tests in the associated test run have successfully passed.

IsPartialRun

Returns a value that indicates whether the associated test run is a partial run.

Item[TestOutcome]

Gets the number of tests in the associated test run that had the specified outcome.

Outcome

Gets or sets the outcome of the associated test run.

OutcomeText

Gets the outcome of the associated test run as localized text.

PassedTestCount

Gets the number of tests that passed in the associated test run.

ResultFiles

Gets a sorted list of the paths of result files that are generated by the associated test run.

ResultsDirectory

Gets the path of the directory where the files that are generated by the associated test run are stored.

RunInfoList

Gets an array of RunInfo objects for the associated test run.

StdErr

Gets or sets the stderr output stream of the associated test run.

StdOut

Gets or sets the stdout output stream of the associated test run.

TestRun

Gets the associated test run for this RunResultAndStatistics object.

TotalTestCount

Gets or sets the total number of tests in the test run.

Methods

AddRunInfo(String, Exception, String, TestOutcome)

Adds a RunInfo object to the RunInfoList property value.

Clone()

Returns a copy of this RunResultAndStatistics object. Read-only.

CopyTo(TestRun)

Copies a clone of this object to the Result of the provided test run.

IsValid()

Returns a value that indicates whether this RunResultAndStatistics object is valid.

Load(XmlElement, XmlTestStoreParameters)

Loads the object from the provided XML element by using the provided parameters.

Save(XmlElement, XmlTestStoreParameters)

Saves the current object to the specified XML element by using the provided parameters.

ToString()

Returns a string version of this RunResultAndStatistics object.

Applies to