summaryrefslogtreecommitdiffstats
path: root/utils/test/reporting/yardstick/template
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2016-09-19 00:33:27 +0000
committerchenjiankun <chenjiankun1@huawei.com>2016-09-19 02:48:27 +0000
commit19630581f1ac53918aa5cc15faca8b2f0d53c00e (patch)
tree5a33a41af4dd561a06dc9804570f29dde7c82b75 /utils/test/reporting/yardstick/template
parentc5a5ac59a33dacaaf47b210aee42c75f4459b273 (diff)
Change display way of reporting status, add last ten days score
JIRA: YARDSTICK-350 Change-Id: Iea1d8a30cf3464c8b9a0b8b6ac2e0ce41adea00d Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'utils/test/reporting/yardstick/template')
-rw-r--r--utils/test/reporting/yardstick/template/index-status-tmpl.html14
1 files changed, 6 insertions, 8 deletions
diff --git a/utils/test/reporting/yardstick/template/index-status-tmpl.html b/utils/test/reporting/yardstick/template/index-status-tmpl.html
index ff1a619f1..602ce8a74 100644
--- a/utils/test/reporting/yardstick/template/index-status-tmpl.html
+++ b/utils/test/reporting/yardstick/template/index-status-tmpl.html
@@ -40,21 +40,19 @@
<div class="panel-heading"><h4><b>List of last scenarios ({{version}}) run over the last {{period}} days </b></h4></div>
<table class="table">
<tr>
- <th width="60%">Scenario</th>
+ <th width="40%">Scenario</th>
<th width="20%">Status</th>
- <th width="20%">Score</th>
+ <th width="20%">Last 4 Iterations</th>
+ <th width="20%">Last 10 Days</th>
</tr>
{% for scenario,result in scenario_results.iteritems() -%}
<tr class="tr-ok">
<td>{{scenario}}</td>
<td>
- {%if scenario_results[scenario].getStatus() is sameas "OK" -%}
- <img src="../../img/icon-ok.png">
- {%- else -%}
- <img src="../../img/icon-nok.png">
- {%- endif %}
+ <img src="../../img/gauge_{{ scenario_results[scenario].getStatus() }}.png">
</td>
- <td>{{scenario_results[scenario].getScore()}}</td>
+ <td>{{scenario_results[scenario].getFourDaysScore()}}</td>
+ <td>{{scenario_results[scenario].getTenDaysScore()}}</td>
</tr>
{%- endfor %}
</table>