TestResult

A test result

Constructors

this
this(string name)

Convenience constructor that sets the test name

Members

Enums

Status
enum Status

The states that a test can have.

Functions

toString
string toString()

Convert the result to a json string

Variables

fileName
string fileName;

The file that contains this test

labels
Label[] labels;

A list of labels that will be added to the final report

line
size_t line;

The line where this test starts

status
Status status;

Represents the test status

throwable
Throwable throwable;

The reason why a test has failed. This value must be set only if the tests has the failure state

Inherited Members

From StepResult

name
string name;

The step name

begin
SysTime begin;

When the step started

end
SysTime end;

When the step ended

steps
StepResult[] steps;

The list of the child steps

attachments
Attachment[] attachments;

The list of attached files

fields
string fields()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Convert the result to a json string

Meta