From 12385bc69b1e4f7e61638e201783f6a56136ba29 Mon Sep 17 00:00:00 2001 From: Mazliana Date: Thu, 14 Feb 2019 13:50:38 +0800 Subject: scripts/resulttool: enable manual execution and result creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Integrated “manualexecution” operation to resulttool scripts. Manual execution script is a helper script to execute all manual test cases in baseline command, which consists of user guideline steps and the expected results. The last step will ask user to provide their input to execute result. The input options are passed/failed/blocked/skipped status. The result given will be written in testresults.json including log error from the user input and configuration if there is any.The output test result for json file is created by using OEQA library. The configuration part is manually key-in by the user. The system allow user to specify how many configuration they want to add and they need to define the required configuration name and value pair. In QA perspective, "configuration" means the test environments and parameters used during QA setup before testing can be carry out. Example of configurations: image used for boot up, host machine distro used, poky configurations, etc. The purpose of adding the configuration is to standardize the output test result format between automation and manual execution. To use these scripts, first source oe environment, then run the entry point script to look for help. $ resulttool To execute manual test cases, execute the below $ resulttool manualexecution By default testresults.json store in /tmp/log/manual/ [YOCTO #12651] (From OE-Core rev: 07054cc2691fd2822028a3fd55185af457f79ebf) Signed-off-by: Mazliana Signed-off-by: Richard Purdie --- scripts/resulttool | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/resulttool') diff --git a/scripts/resulttool b/scripts/resulttool index ebb5fc81c9..13430e192a 100755 --- a/scripts/resulttool +++ b/scripts/resulttool @@ -17,6 +17,11 @@ # To perform regression file analysis, execute the below # $ resulttool regression-file # +# To execute manual test cases, execute the below +# $ resulttool manualexecution +# +# By default testresults.json for manualexecution store in /tmp/log/manual/ +# # Copyright (c) 2019, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it @@ -42,6 +47,7 @@ import resulttool.merge import resulttool.store import resulttool.regression import resulttool.report +import resulttool.manualexecution logger = scriptutils.logger_create('resulttool') def _validate_user_input_arguments(args): @@ -58,6 +64,8 @@ def main(): parser.add_argument('-q', '--quiet', help='print only errors', action='store_true') subparsers = parser.add_subparsers(dest="subparser_name", title='subcommands', metavar='') subparsers.required = True + subparsers.add_subparser_group('manualexecution', 'manual testcases', 300) + resulttool.manualexecution.register_commands(subparsers) subparsers.add_subparser_group('setup', 'setup', 200) resulttool.merge.register_commands(subparsers) resulttool.store.register_commands(subparsers) -- cgit v1.2.3-54-g00ecf