From 7ccb34ecddc674ad23ed1f0e607fd12b6d5954b9 Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Fri, 1 Mar 2024 00:05:45 +0100 Subject: Error reason added to the test reports Error reason added to the test reports Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski Change-Id: I024626764b134d9fe7607988cf46918414f1deb3 --- src/onaptests/templates/reporting/reporting.html.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/onaptests/templates') 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 @@ {{ step_report.step_description }} + {% if step_report.step_execution_status.value == 'FAIL' and (step_report.step_error_reason | length) > 0 %} + + {% for error_reason in step_report.step_error_reason %} + + + + + + + {% endfor %} +
{{ error_reason }}
+ {% endif %} {{ step_report.step_execution_status.value }} -- cgit 1.2.3-korg