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 | |
---|---|---|
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 | 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. |
Top
Methods
Name | Description | |
---|---|---|
AddRunInfo | Adds a RunInfo object to the RunInfoList property value. | |
Clone | Returns a copy of this RunResultAndStatistics object. Read-only. | |
CopyTo | Copies a clone of this object to the TestRun.Result of the provided test run. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsValid | Returns a value that indicates whether this RunResultAndStatistics object is valid. | |
Load | Loads the object from the provided XML element by using the provided parameters. | |
Save | Saves the current object to the specified XML element by using the provided parameters. | |
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
Other Resources
Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine