From 25b21add71fcf7c2c795bd950b5117d69fac68fb 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> --- yardstick/cmd/commands/report.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 yardstick/cmd/commands/report.py (limited to 'yardstick/cmd/commands/report.py') diff --git a/yardstick/cmd/commands/report.py b/yardstick/cmd/commands/report.py new file mode 100644 index 000000000..87ae7d5f7 --- /dev/null +++ b/yardstick/cmd/commands/report.py @@ -0,0 +1,33 @@ +############################################################################## +# 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 +############################################################################## + +""" Handler for yardstick command 'report' """ + +from __future__ import print_function + +from __future__ import absolute_import + +from yardstick.benchmark.core.report import Report +from yardstick.cmd.commands import change_osloobj_to_paras +from yardstick.common.utils import cliargs + + +class ReportCommands(object): + """Report commands. + + Set of commands to manage benchmark tasks. + """ + + @cliargs("task_id", type=str, help=" task id", nargs=1) + @cliargs("yaml_name", type=str, help=" Yaml file Name", nargs=1) + def do_generate(self, args): + """Start a benchmark scenario.""" + param = change_osloobj_to_paras(args) + Report().generate(param) -- cgit 1.2.3-korg