Class StepResult

A step result

class StepResult ;

Fields

NameTypeDescription
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

Example

Convert a step result to a json

auto step = new StepResult();
step.name = "step name";
step.begin = SysTime.fromISOExtString("2000-01-01T00:00:00Z");
step.end = SysTime.fromISOExtString("2000-01-01T01:00:00Z");
step.steps = [ new StepResult() ];
step.attachments = [ Attachment() ];

step.toString.should.equal(`{"name":"step name","begin":"2000-01-01T00:00:00Z","end":"2000-01-01T01:00:00Z","steps":` ~
`[{"name":"","begin":"-29227-04-19T21:11:54.5224192Z","end":"-29227-04-19T21:11:54.5224192Z","steps":[],"attachments":`~
`[]}],"attachments":[{"name":"","file":"","mime":""}]}`);