summaryrefslogtreecommitdiffstats
path: root/vnftest/common/html_template.py
diff options
context:
space:
mode:
authorMoshe <moshehoa@amdocs.com>2019-01-17 18:04:54 +0200
committerMoshe <moshehoa@amdocs.com>2019-01-17 18:05:01 +0200
commit6ed81bdf24927a0900d4857d7652ae48cc8c78b1 (patch)
tree821fff9c7ef18e7ce57ce353e75420900c896948 /vnftest/common/html_template.py
parent1112c6e3e6eae3aa10680b2d7b0d653de1a4bc0b (diff)
Refactor test reporting
Issue-ID: VNFSDK-350 Change-Id: I66a82ab56dd6702903e4d1edf776a6d29cb4e836 Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/common/html_template.py')
-rw-r--r--vnftest/common/html_template.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/vnftest/common/html_template.py b/vnftest/common/html_template.py
index 7a91781..0196ba3 100644
--- a/vnftest/common/html_template.py
+++ b/vnftest/common/html_template.py
@@ -146,9 +146,9 @@ report_template = """
<hr/>
<div>
- <div>Task ID : {{result.task_id}} </div>
+ <div>Task ID : {{task_id}} </div>
<div style="margin-top:5px;">Criteria :
- <font> {{result.criteria}}</font>
+ <font> {{criteria}}</font>
</div>
<hr/>
@@ -160,7 +160,7 @@ report_template = """
<th>value</th>
</tr>
<tbody>
- {% for key, value in result.info.items() %}
+ {% for key, value in info.items() %}
<tr>
<td>{{ loop.index }}</td>
<td>{{key}}</td>
@@ -179,12 +179,11 @@ report_template = """
<th>value</th>
</tr>
<tbody>
- {% for key, value in result.testcases.items() %}
+ {% for testcase in testcases %}
<tr>
<td>{{ loop.index }}</td>
- <td>{{key}}</td>
- <td>{{value.criteria}}</td>
- <td>{{value.output}}</td>
+ <td>{{testcase.name}}</td>
+ <td>{{testcase.criteria}}</td>
</tr>
{% endfor %}
</tbody>