Error reason added to the test reports
[testsuite/pythonsdk-tests.git] / src / onaptests / templates / reporting / reporting.html.j2
index 246f362..dab7b1b 100644 (file)
             <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 }}