From 909974639506803e066833ac826a0d93c74cad82 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 14 Sep 2016 16:16:46 +0200 Subject: Add gauge metrics for Functest reporting dashboard JIRA: FUNCTEST-476 Change-Id: Ia39ffa8b39a1085a081d6128871cee20436e051c Signed-off-by: jose.lausuch --- .../functest/template/index-status-tmpl.html | 38 +++++++++++++++++----- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'utils/test/reporting/functest/template') diff --git a/utils/test/reporting/functest/template/index-status-tmpl.html b/utils/test/reporting/functest/template/index-status-tmpl.html index da2213bc0..96240de5b 100644 --- a/utils/test/reporting/functest/template/index-status-tmpl.html +++ b/utils/test/reporting/functest/template/index-status-tmpl.html @@ -48,11 +48,33 @@ {% for scenario,iteration in scenario_stats.iteritems() -%} {{scenario}} - {%if scenario_results[scenario].getStatus() is sameas "OK" -%} - - {%- else -%} - - {%- endif %} + {%if scenario_results[scenario].getScorePercent() < 8.3 -%} + + {%elif scenario_results[scenario].getScorePercent() < 16.7 -%} + + {%elif scenario_results[scenario].getScorePercent() < 25 -%} + + {%elif scenario_results[scenario].getScorePercent() < 33.3 -%} + + {%elif scenario_results[scenario].getScorePercent() < 41.7 -%} + + {%elif scenario_results[scenario].getScorePercent() < 50 -%} + + {%elif scenario_results[scenario].getScorePercent() < 58.3 -%} + + {%elif scenario_results[scenario].getScorePercent() < 66.7 -%} + + {%elif scenario_results[scenario].getScorePercent() < 75 -%} + + {%elif scenario_results[scenario].getScorePercent() < 83.3 -%} + + {%elif scenario_results[scenario].getScorePercent() < 91.7 -%} + + {%elif scenario_results[scenario].getScorePercent() < 100 -%} + + {%- else -%} + + {%- endif %} {{scenario_results[scenario].getScore()}} {{iteration}} @@ -78,14 +100,14 @@ {% if test.getCriteria() > -1 -%} {{test.getDisplayName() }} {%- endif %} - {% if test.getTier() > 3 -%} + {% if test.getTier() > 3 -%} * {%- endif %} - + {%- endfor %} - {% for test in items[scenario] -%} + {% for test in items[scenario] -%} {% if test.getCriteria() > 2 -%} {%- elif test.getCriteria() > 1 -%} -- cgit 1.2.3-korg