aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/templates
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2024-03-01 00:05:45 +0100
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2024-03-03 15:23:25 +0100
commit7ccb34ecddc674ad23ed1f0e607fd12b6d5954b9 (patch)
treeb2be46a4bc3b216de9aaad0844a869df064b3698 /src/onaptests/templates
parentf81e846d07ae7676494d90756411fe898afd92fb (diff)
Error reason added to the test reports
Error reason added to the test reports Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I024626764b134d9fe7607988cf46918414f1deb3
Diffstat (limited to 'src/onaptests/templates')
-rw-r--r--src/onaptests/templates/reporting/reporting.html.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/src/onaptests/templates/reporting/reporting.html.j2 b/src/onaptests/templates/reporting/reporting.html.j2
index 246f362..dab7b1b 100644
--- a/src/onaptests/templates/reporting/reporting.html.j2
+++ b/src/onaptests/templates/reporting/reporting.html.j2
@@ -31,6 +31,18 @@
<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 }}
+ {% if step_report.step_execution_status.value == 'FAIL' and (step_report.step_error_reason | length) > 0 %}
+ <table class="table is-fullwidth is-striped is-hoverable">
+ {% for error_reason in step_report.step_error_reason %}
+ <tr class="has-background-danger">
+ <td></td>
+ </tr>
+ <tr class="has-background-danger-light">
+ <td>{{ error_reason }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
</td>
<td>
{{ step_report.step_execution_status.value }}