       harness: 'Step'
 
   runner.on 'fail', (test, testErr) ->
+
     testStepFailed = yes
     send
       title: test.title
+      duration: test.duration
       state: test.state
       harness: 'Step'
       err: testErr.message.toString()


@sessionId = null
@runId = null

send = (snippet, cb) =>
  @sessionId = snippet.sessionId if snippet.sessionId?
  @runId = Date.now()+Math.floor Math.random() * 10000 if @runId is null
  snippet['sessionId'] = @sessionId
  snippet['runId'] = @runId
  elastic.send snippet, (e) ->
    return new ElasticSearchError e if e


        err: null

  runner.on 'pass', (test) ->

    send
      title: test.title
      duration: test.duration
