TestResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains a set of StepResult objects that store information about the results of a diagnostic test run.
public class TestResult
type TestResult = class
Public Class TestResult
- Inheritance
-
TestResult
Constructors
TestResult() |
Initializes a new instance of the TestResult class without specifying a name of the test result. |
TestResult(String) |
Initializes a new instance of the TestResult class with the specified name. |
Properties
Name |
Retrieves or sets the name for the TestResult object. |
StepResults |
Retrieves or sets the list of StepResult objects that the TestResult object contains. |
Summary |
Methods
DeSerializeFromFile(String) |
Deserializes the XML in the specified file and creates a TestResult object with property values that match the information in the file. |
DeSerializeFromString(String) |
Deserializes the XML in the specified string and creates a TestResult object with property values that match the information in the string. |
GenerateSimpleResultSummary() |
Creates a StepResult object with information that summarizes the results that are contained by the other StepResult objects in the TestResult object. |
XmlSerializeToFile(String) |
Serializes the properties of the TestResult object into XML and saves the result in the specified file. |
XmlSerializeToStandardOut() |
Serializes the properties of the TestResult object into XML and sends the result to standard output. |
XmlSerializeToStream(Stream) |
Serializes the properties of the TestResult object into XML and saves the result by using the specified Stream. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for