diff options
author | Mazliana <mazliana.mohamad@intel.com> | 2019-02-14 13:50:38 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-21 12:34:00 +0000 |
commit | beed7523b667affea71d37d88d2f5c19c935d159 (patch) | |
tree | 9ace70f443f88b2bc949ba5cbdda871bdb850365 /scripts/resulttool | |
parent | 1fd5ebdb06224489ad056e261962e23ece36fc87 (diff) | |
download | poky-beed7523b667affea71d37d88d2f5c19c935d159.tar.gz |
scripts/resulttool: enable manual execution and result creation
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 <manualjsonfile>
By default testresults.json store in <build_dir>/tmp/log/manual/
[YOCTO #12651]
(From OE-Core rev: f24dc9e87085a8fe5410feee10c7a3591fe9d816)
Signed-off-by: Mazliana <mazliana.mohamad@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/resulttool')
-rwxr-xr-x | scripts/resulttool | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/resulttool b/scripts/resulttool index ebb5fc81c9..13430e192a 100755 --- a/scripts/resulttool +++ b/scripts/resulttool | |||
@@ -17,6 +17,11 @@ | |||
17 | # To perform regression file analysis, execute the below | 17 | # To perform regression file analysis, execute the below |
18 | # $ resulttool regression-file <base_result_file> <target_result_file> | 18 | # $ resulttool regression-file <base_result_file> <target_result_file> |
19 | # | 19 | # |
20 | # To execute manual test cases, execute the below | ||
21 | # $ resulttool manualexecution <manualjsonfile> | ||
22 | # | ||
23 | # By default testresults.json for manualexecution store in <build>/tmp/log/manual/ | ||
24 | # | ||
20 | # Copyright (c) 2019, Intel Corporation. | 25 | # Copyright (c) 2019, Intel Corporation. |
21 | # | 26 | # |
22 | # This program is free software; you can redistribute it and/or modify it | 27 | # This program is free software; you can redistribute it and/or modify it |
@@ -42,6 +47,7 @@ import resulttool.merge | |||
42 | import resulttool.store | 47 | import resulttool.store |
43 | import resulttool.regression | 48 | import resulttool.regression |
44 | import resulttool.report | 49 | import resulttool.report |
50 | import resulttool.manualexecution | ||
45 | logger = scriptutils.logger_create('resulttool') | 51 | logger = scriptutils.logger_create('resulttool') |
46 | 52 | ||
47 | def _validate_user_input_arguments(args): | 53 | def _validate_user_input_arguments(args): |
@@ -58,6 +64,8 @@ def main(): | |||
58 | parser.add_argument('-q', '--quiet', help='print only errors', action='store_true') | 64 | parser.add_argument('-q', '--quiet', help='print only errors', action='store_true') |
59 | subparsers = parser.add_subparsers(dest="subparser_name", title='subcommands', metavar='<subcommand>') | 65 | subparsers = parser.add_subparsers(dest="subparser_name", title='subcommands', metavar='<subcommand>') |
60 | subparsers.required = True | 66 | subparsers.required = True |
67 | subparsers.add_subparser_group('manualexecution', 'manual testcases', 300) | ||
68 | resulttool.manualexecution.register_commands(subparsers) | ||
61 | subparsers.add_subparser_group('setup', 'setup', 200) | 69 | subparsers.add_subparser_group('setup', 'setup', 200) |
62 | resulttool.merge.register_commands(subparsers) | 70 | resulttool.merge.register_commands(subparsers) |
63 | resulttool.store.register_commands(subparsers) | 71 | resulttool.store.register_commands(subparsers) |