aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/templates/reporting
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests/templates/reporting')
-rw-r--r--src/onaptests/templates/reporting/reporting.html.j214
1 files changed, 9 insertions, 5 deletions
diff --git a/src/onaptests/templates/reporting/reporting.html.j2 b/src/onaptests/templates/reporting/reporting.html.j2
index 5dafe3f..05c00b7 100644
--- a/src/onaptests/templates/reporting/reporting.html.j2
+++ b/src/onaptests/templates/reporting/reporting.html.j2
@@ -2,7 +2,7 @@
{% block title %}Summary{% endblock %}
{% block content %}
{{ summary('Results', "", [
- { 'title': 'Pythonsdk Tests', 'failing': (failing_steps | length), 'total': (steps | length)},
+ { 'title': 'Pythonsdk Tests', 'failing': report.failed_steps_num, 'total': (report.report | length)},
])
}}
@@ -23,16 +23,20 @@
<tr>
<th>Name</th>
<th>Status</th>
+ <th>Duration (seconds)</th>
</tr>
</thead>
<tbody>
- {% for step,value in steps.items() %}
- <tr {% if value == 'FAIL' %} class="has-background-danger" {% else %} class="has-background-success-light" {% endif %}>
+ {% for step_report in report.report %}
+ <tr {% if step_report.step_execution_status.value == 'FAIL' %} class="has-background-danger" {% else %} class="has-background-success-light" {% endif %}>
<td>
- {{ step }}
+ {{ step_report.step_description }}
</td>
<td>
- {{ value }}
+ {{ step_report.step_execution_status.value }}
+ </td>
+ <td>
+ {{ step_report.step_execution_duration | round(2) }}
</td>
</tr>
{% endfor %}