From 06c0f074a136414d1e9704aa4e30c62e50f2d5ce Mon Sep 17 00:00:00 2001 From: rajesh_4k <4k.rajesh@gmail.com> Date: Mon, 27 Feb 2017 18:09:00 +0530 Subject: Yardstick: User interface for Yardstick. Currently Yardstick doesnt have any UI which gives detail analysis of the test-results. This commit generates a HTML page after the execution of a command "yardstick report generate " which intern can be executed after the execution of test-case. Used: Highcharts.js for the graphs. JIRA: YARDSTICK-280 Change-Id: Ic98cc348719f3922bff178f52e7944a4a931763a Signed-off-by: Rajesh K <4k.rajesh@gmail.com> (cherry picked from commit 25b21add71fcf7c2c795bd950b5117d69fac68fb) --- yardstick/common/html_template.py | 133 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 yardstick/common/html_template.py (limited to 'yardstick/common/html_template.py') diff --git a/yardstick/common/html_template.py b/yardstick/common/html_template.py new file mode 100644 index 000000000..4b46e77a0 --- /dev/null +++ b/yardstick/common/html_template.py @@ -0,0 +1,133 @@ +############################################################################# +# Copyright (c) 2017 Rajesh Kudaka +# +# Author: Rajesh Kudaka 4k.rajesh@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################# + +template = """ + + + + + + + + + + + + + +
+

Yardstick User Interface

+

Report of {{task_id}} Generated

+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + +""" -- cgit 1.2.3-korg '#n13'>13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32