Class TestResult
A test result
Constructors
Name | Description |
this
(name)
|
Convenience constructor that sets the test name
|
Fields
Name | Type | Description |
fileName
|
string | The file that contains this test
|
labels
|
Label[] | A list of labels that will be added to the final report
|
line
|
ulong | The line where this test starts
|
status
|
TestResult.Status | Represents the test status
|
throwable
|
object.Throwable | The reason why a test has failed. This value must be set only if the tests has the
failure state
|
attachments
|
Attachment[] | The list of attached files
|
begin
|
std.datetime.systime.SysTime | When the step started
|
end
|
std.datetime.systime.SysTime | When the step ended
|
name
|
string | The step name
|
steps
|
StepResult[] | The list of the child steps
|
Methods
Name | Description |
toString
()
|
Convert the result to a json string
|
Enums
Name | Description |
Status
|
The states that a test can have.
|