Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions beans/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ Step.prototype.end = function (status, timestamp) {
};

Step.prototype.toXML = function () {
var start = (this.start == '' || typeof this.start === 'undefined') ? Date.now() : this.start;
var stop = (this.stop == '' || typeof this.stop === 'undefined') ? Date.now() : this.stop;
var status = (this.status == '' || typeof this.status === 'undefined') ? 'failed' : this.status;

return {
'@': {
start: this.start,
stop: this.stop,
status: this.status
start: start,
stop: stop,
status: status
},
name: this.name,
title: this.name,
Expand Down
6 changes: 4 additions & 2 deletions beans/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ Suite.prototype.addTest = function(test) {
};

Suite.prototype.toXML = function() {
var start = (this.start == '' || typeof this.start === 'undefined') ? Date.now() : this.start;
var stop = (this.stop == '' || typeof this.stop === 'undefined') ? Date.now() : this.stop;
return {
'@': {
'xmlns:ns2' : 'urn:model.allure.qatools.yandex.ru',
start: this.start,
stop: this.stop
start: start,
stop: stop
},
name: this.name,
title: this.name,
Expand Down
9 changes: 6 additions & 3 deletions beans/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,14 @@ Test.prototype.end = function (status, error, timestamp) {
};

Test.prototype.toXML = function () {
var start = (this.start == '' || typeof this.start === 'undefined') ? Date.now() : this.start;
var stop = (this.stop == '' || typeof this.stop === 'undefined') ? Date.now() : this.stop;
var status = (this.status == '' || typeof this.status === 'undefined') ? 'failed' : this.status;
var result = {
'@': {
start: this.start,
stop: this.stop,
status: this.status
start: start,
stop: stop,
status: status
},
name: this.name,
title: this.name,
Expand Down