ITestResult
Overview
Represents a result of a test run.
This interface is returned by the Runner class when test run is finished.
Use case
This inteface can be used to process result of a test run:
//locates all tests
var Discovered := Discovery.DiscoverTests;
//Executes tests
var Completed := Runner.RunTests(Discovered);
var Writer := new ConsoleWriter(Completed);
Writer.WriteFull;
Writer.OutputToConsole;
Location
-
Reference:
- RemObjects.Elements.EUnit.dll .NET, .NET Standard 2.0
- remobjects.elements.eunit.jar Cooper
- EUnit.fx Island, macOS
- libEUnit.fx Toffee
- Namespace: RemObjects.Elements.EUnit
- Platforms: .NET, .NET Standard 2.0, Cooper, Island, macOS, Toffee
Properties
Children
Gets sequence of child elements.
property Children: IEnumerable<ITestResult> read;
IEnumerable<ITestResult> Children { get; }
// .NET, .NET Standard 2.0, Island, macOS
var Children: IEnumerable<ITestResult> { get{} }
// Toffee
var Children: INSFastEnumeration<ITestResult> { get{} }
Iterable<ITestResult> Children { __get; }
ReadOnly Property Children() As IEnumerable<ITestResult>
DisplayName
Gets or sets a display name of test.
property DisplayName: String read write;
String DisplayName { get; set; }
var DisplayName: String { get{} set{} }
String DisplayName { __get; __set; }
Property DisplayName() As String
Id
Gets unique identified of this test.
property Id: String read;
String Id { get; }
var Id: String { get{} }
String Id { __get; }
ReadOnly Property Id() As String
Message
Gets resulting message.
property Message: String read;
String Message { get; }
var Message: String { get{} }
String Message { __get; }
ReadOnly Property Message() As String
Name
Gets name of the test.
property Name: String read;
String Name { get; }
var Name: String { get{} }
String Name { __get; }
ReadOnly Property Name() As String
ParsableMessage
property ParsableMessage: String read;
String ParsableMessage { get; }
var ParsableMessage: String { get{} }
String ParsableMessage { __get; }
ReadOnly Property ParsableMessage() As String
State
Gets state of the test run.
property State: TestState read;
TestState State { get; }
var State: TestState { get{} }
TestState State { __get; }
ReadOnly Property State() As TestState
Test
Gets reference to a test that was executed.
property Test: ITest read;
ITest Test { get; }
var Test: ITest { get{} }
ITest Test { __get; }
ReadOnly Property Test() As ITest