Convert the result to a json string
The list of attached files
When the step started
When the step ended
The step name
The list of the child steps
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":""}]}`);
A step result