Share via


RunResultAndStatistics Class

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

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Common.RunResultAndStatistics

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class RunResultAndStatistics _
    Implements ICloneable, IVerifiable, IXmlTestStore
[SerializableAttribute]
public sealed class RunResultAndStatistics : ICloneable, 
    IVerifiable, IXmlTestStore
[SerializableAttribute]
public ref class RunResultAndStatistics sealed : ICloneable, 
    IVerifiable, IXmlTestStore
[<Sealed>]
[<SerializableAttribute>]
type RunResultAndStatistics =  
    class 
        interface ICloneable 
        interface IVerifiable 
        interface IXmlTestStore 
    end
public final class RunResultAndStatistics implements ICloneable, IVerifiable, IXmlTestStore

The RunResultAndStatistics type exposes the following members.

Properties

  Name Description
Public property 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.
Public property DataCollectorMessages Gets a read-only list of messages that are provided by the diagnostic data adapters that are used in the associated test run.
Public property DebugTrace Gets or sets the debug trace data for the associated test run.
Public property ExecutedTestCount Gets the number of tests that are executed in the associated test run.
Public property FailedTestCount Gets the number of tests that failed in the associated test run.
Public property HasPassed Gets a value that indicates whether all tests in the associated test run have successfully passed.
Public property IsPartialRun Returns a value that indicates whether the associated test run is a partial run.
Public property Item Gets the number of tests in the associated test run that had the specified outcome.
Public property Outcome Gets or sets the outcome of the associated test run.
Public property OutcomeText Gets the outcome of the associated test run as localized text.
Public property PassedTestCount Gets the number of tests that passed in the associated test run.
Public property ResultFiles Gets a sorted list of the paths of result files that are generated by the associated test run.
Public property ResultsDirectory Gets the path of the directory where the files that are generated by the associated test run are stored.
Public property RunInfoList Gets an array of RunInfo objects for the associated test run.
Public property StdErr Gets or sets the stderr output stream of the associated test run.
Public property StdOut Gets or sets the stdout output stream of the associated test run.
Public property TestRun Gets the associated test run for this RunResultAndStatistics object.
Public property TotalTestCount Gets or sets the total number of tests in the test run.

Top

Methods

  Name Description
Public method AddRunInfo Adds a RunInfo object to the RunInfoList property value.
Public method Clone Returns a copy of this RunResultAndStatistics object. Read-only.
Public method CopyTo Copies a clone of this object to the TestRun.Result of the provided test run.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsValid Returns a value that indicates whether this RunResultAndStatistics object is valid.
Public method Load Loads the object from the provided XML element by using the provided parameters.
Public method Save Saves the current object to the specified XML element by using the provided parameters.
Public method ToString Returns a string version of this RunResultAndStatistics object. (Overrides Object.ToString.)

Top

Remarks

This class cannot be inherited, but it is available to custom extensions, such as diagnostic data adapters, through the TestRun.Result property. The object is instantiated by a test run and values are set by the test framework.

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace

IVerifiable

IXmlTestStore

TestRun.Result

Other Resources

Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine