Create draft of report template in console 81/29681/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 3 Mar 2017 01:25:45 +0000 (09:25 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 3 Mar 2017 01:25:45 +0000 (09:25 +0800)
Change-Id: Ie6e626753c6562c361542c45e8504d177d624d2a
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
qtip/reporter/templates/report.j2 [new file with mode: 0644]

diff --git a/qtip/reporter/templates/report.j2 b/qtip/reporter/templates/report.j2
new file mode 100644 (file)
index 0000000..766e6dd
--- /dev/null
@@ -0,0 +1,22 @@
+{{ title }}
+
+Plan: {{ plan.name }}
+
+{{ qpi.name }}: {{ qpi.score }}
+Sections:
+{% for section in sections %}
+    {{ section.name }}: {{ section.score }}
+
+    Formula: {{ section.formula }}
+    Metrics:
+    {% for metric in section.metrics %}
+        {{ metric.name }}: {{ metric.score }}
+        Formula: {{ metric.formula }}
+        Workloads:
+        {% for workload in workloads %}
+            {{ workload.name }}: {{ workload.score }}
+        {% endfor %}
+    {% endfor  %}
+{% endfor %}
+
+{{ signature }}