Class TestResult

A test result

class TestResult
  : StepResult ;

Constructors

NameDescription
this (name) Convenience constructor that sets the test name

Fields

NameTypeDescription
fileName stringThe file that contains this test
labels Label[]A list of labels that will be added to the final report
line ulongThe line where this test starts
status TestResult.StatusRepresents the test status
throwable object.ThrowableThe 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.SysTimeWhen the step started
end std.datetime.systime.SysTimeWhen the step ended
name stringThe step name
steps StepResult[]The list of the child steps

Methods

NameDescription
toString () Convert the result to a json string

Enums

NameDescription
Status The states that a test can have.