aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/templates/reporting/reporting.html.j2
blob: 246f362b16310b62397da1f20c5591e1a9aba01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% extends "base.html.j2" %}
{% block title %}Summary{% endblock %}
{% block content %}
    {{ summary('Results', "", [
      { 'title': 'Pythonsdk Tests', 'failing': report.failed_steps_num, 'total': (report.report | length)},
      ])
    }}

  <section class="section">
    <div class="container">
      <h1 class="title is-1">
        {{ usecase }}
      </h1>
        Description: {{ details }}
        <br>
        Components: {{ components }}
        <br>
        <a href="{{ log_path }}"> Logs</a>
      <!-- Pythonsdk steps table -->
      <div id="helms" class="table-container">
        <table class="table is-fullwidth is-striped is-hoverable">
          <thead>
            <tr>
              <th>Name</th>
              <th>Status</th>
              <th>Duration (seconds)</th>
            </tr>
          </thead>
          <tbody>
          {% for step_report in report.report %}
            <tr {% if  step_report.step_execution_status.value == 'FAIL' %} class="has-background-danger" {% elif step_report.step_execution_status.value == 'PASS' %} class="has-background-success-light" {% else %} class="has-background-warning-light" {% endif %}>
            <td>
            {{ step_report.step_description }}
            </td>
            <td>
            {{ step_report.step_execution_status.value }}
            </td>
            <td>
            {{ step_report.step_execution_duration | round(2) }}
            </td>
            </tr>
          {% endfor %}
          </tbody>
        </table>
      </div>
    </div>
{% endblock %}