webdriverio-automation
Version:
WebdriverIO-Automation android ios project
34 lines (26 loc) • 550 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
class RunnableStats {
constructor(type) {
this.type = type;
this.start = new Date();
this._duration = 0;
}
complete() {
this.end = new Date();
this._duration = this.end - this.start;
}
get duration() {
if (this.end) {
return this._duration;
}
return new Date() - this.start;
}
static getIdentifier(runner) {
return runner.uid || runner.title;
}
}
exports.default = RunnableStats;
;