StepResult

A step result

Constructors

this
this()
Undocumented in source.

Members

Functions

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

Variables

attachments
Attachment[] attachments;

The list of attached files

begin
SysTime begin;

When the step started

end
SysTime end;

When the step ended

name
string name;

The step name

steps
StepResult[] steps;

The list of the child steps

Examples

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":""}]}`);

Meta