Class StepResult
A step result
class StepResult
;
Fields
Name | Type | Description |
---|---|---|
attachments
|
Attachment[] | The list of attached files |
begin
|
std | When the step started |
end
|
std | 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 |
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":""}]}`);