code: function () {
      //var timestamp = Math.round(new Date().getTime() / 1000);
  
      if (this._checkNodeAttributes(this.testIdx, this.testCount)) {
        this.xml[0].children[this.testIdx].children[this.testCount].attrs = {};
      }
      //this.xml[0].children[this.testIdx].children[this.testCount].attrs.end = timestamp;
      //this.xml[0].children[this.testIdx].children[this.testCount].attrs.result = data.status ? 'Passed' : 'Failed';
  
      if (this.variationCount > -1) {
        if (this._checkNodeAttributes(this.testIdx, this.testCount, this.variationCount)) {
          this.xml[0].children[this.testIdx].children[this.testCount].children[this.variationCount].attrs = {};
        }
        //this.xml[0].children[this.testIdx].children[this.testCount].children[this.variationCount].attrs.end = timestamp;
      }
  
      this.testCount++;
      this.variationCount = -1;
      return this;
    }
docs: Finishes XML skeleton for a testcase
  
  @method testFinished
  @param {object} data Event data
  @chainable