From eeeb7190de7185c9994e460cc0472e8817ab68aa Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Tue, 3 Nov 2020 15:25:58 +0000 Subject: Integration tests report enrichment Improve the step description for better reporting Add duration step in pythonsdk-test reporting Issue-ID: TEST-271 Issue-ID: TEST-272 Signed-off-by: Michal Jagiello Change-Id: I6d46cb38ae236bc578eb15982c2c0b8f2b0c0791 --- src/onaptests/templates/reporting/reporting.html.j2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/onaptests/templates/reporting') 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 @@ Name Status + Duration (seconds) - {% for step,value in steps.items() %} - + {% for step_report in report.report %} + - {{ step }} + {{ step_report.step_description }} - {{ value }} + {{ step_report.step_execution_status.value }} + + + {{ step_report.step_execution_duration | round(2) }} {% endfor %} -- cgit 1.2.3-korg