From 76be7f7c6b2921aad6a68504a2020fb032eb5fde Mon Sep 17 00:00:00 2001 From: Leo Wang Date: Wed, 21 Dec 2016 02:34:44 -0500 Subject: [dovetail tool]check and get results for each cmd JIRA: DOVETAIL-166 Check the results of each cmds executed in test case 1. the results of pre_condition, post_condition, cmds need to be checked, so it can get a quick fail, dont need to go through the next step 2. it's more accurate to show where error occurred as early as possible 3. get results from shell scripts Change-Id: I5c1e59839c55b92de0e83e7e1eb552aa364b3f80 Signed-off-by: Leo Wang --- dovetail/testcase/example.tc002.yml | 1 + dovetail/testcase/example.tc003.yml | 14 ++++++++++++++ dovetail/testcase/ipv6.tc001.yml | 4 ++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 dovetail/testcase/example.tc003.yml (limited to 'dovetail/testcase') diff --git a/dovetail/testcase/example.tc002.yml b/dovetail/testcase/example.tc002.yml index 89d000c9..b9296074 100644 --- a/dovetail/testcase/example.tc002.yml +++ b/dovetail/testcase/example.tc002.yml @@ -8,6 +8,7 @@ dovetail.example.tc002: - "echo pre_condition" cmds: - "echo test2" + - "mkdir xxx" post_condition: - "echo post_condition" report: diff --git a/dovetail/testcase/example.tc003.yml b/dovetail/testcase/example.tc003.yml new file mode 100644 index 00000000..7916e017 --- /dev/null +++ b/dovetail/testcase/example.tc003.yml @@ -0,0 +1,14 @@ +dovetail.example.tc003: + name: dovetail.example.tc003 + objective: doing something useful + validate: + type: shell + testcase: "run shell22" + pre_condition: + cmds: + - "echo test2" + post_condition: + - "" + report: + sub_testcase_list: + diff --git a/dovetail/testcase/ipv6.tc001.yml b/dovetail/testcase/ipv6.tc001.yml index 0bc0baaa..916d0915 100644 --- a/dovetail/testcase/ipv6.tc001.yml +++ b/dovetail/testcase/ipv6.tc001.yml @@ -5,12 +5,12 @@ dovetail.ipv6.tc001: type: functest testcase: tempest_smoke_serial pre_condition: - - 'echo test for precondition' + - 'echo test for precondition in testcase' cmds: - 'functest env prepare' - 'functest testcase run {{validate_testcase}}' post_condition: - - 'echo test for precondition' + - 'echo test for precondition in testcase' report: sub_testcase_list: - tempest.api.network.test_networks.BulkNetworkOpsIpV6Test.test_bulk_create_delete_network -- cgit 1.2.3-korg