
{{#with this as |ts|}}
  <details>
    <summary>
      <code>
        {{renderSymbol ts.result}}
      </code>
      <b>
        {{renderScenarioTitle ts}}
      </b>
    </summary>
    <br />
    <ul>
      <li>
        Duration:
        {{renderDuration ts.startTime ts.endTime}}
      </li>
      <li>
        Swagger Files
        <ul>
          {{#each ts.swaggerFilePaths}}
            <li>
              <a target="_blank" href="{{renderPlain this}}">
                {{renderPlain this}}
              </a>
            </li>
          {{/each}}
        </ul>
      </li>
      <li>
        Run Id: {{renderPlain ts.runId}}
      </li>
    </ul>
    <b>
      &nbsp;&nbsp;&nbsp;&nbsp;API Test Steps:
    </b>
    <ol>
{{#each ts.steps}}
  {{#with this as |s|}}
<li>
  <code>
        {{renderSymbol s.result}}
  </code>
<b>
        {{renderStepTitle s}}
</b>
</li>
<ul>
    <li>
      StatusCode:
      {{renderPlain s.statusCode}}
    </li>
    <li>
      Duration:
      {{renderResponseTime s.responseTime}}
    </li>
    {{#if (shouldReportPayload s.payloadPath)}}
    <li>
      Payload:
      <a target="_blank" href="{{renderPlain s.payloadPath}}">
        {{renderPlain s.payloadPath}}
      </a>
    </li>
    {{/if}}
  </ul>

{{#if (shouldReportError s)}}
|{{renderWhitespace 27}}Rule{{renderWhitespace 27}}| Message |
|------|---------|
{{/if}}
            {{#each s.runtimeError}}
              {{#with this as |re|}}
| <code> {{renderSymbol "fatal"}} </code> {{renderFatalErrorCode re}} | {{renderFatalErrorDetail re}} |
              {{/with}}
            {{/each}}
            {{#each s.liveValidationResult.requestValidationResult.errors}}
            {{#with this as |rd|}}
| <code> {{renderSymbol "failed"}} </code> {{renderLiveValidationErrorCode rd}} | {{renderLiveValidationErrorDetail rd}} |
              {{/with}}
            {{/each}}
            {{#each s.liveValidationResult.responseValidationResult.errors}}
            {{#with this as |rd|}}
| <code> {{renderSymbol "failed"}} </code> {{renderLiveValidationErrorCode rd}} | {{renderLiveValidationErrorDetail rd}} |
              {{/with}}
            {{/each}}
            {{#each s.roundtripValidationResult.errors}}
            {{#with this as |rd|}}
| <code> {{renderSymbol "failed"}} </code> {{renderLiveValidationErrorCode rd}} | {{renderLiveValidationErrorDetail rd}} |
              {{/with}}
            {{/each}}
          {{/with}}
<br />
{{/each}}

</ol>
</details>
{{/with}}
