refactor testcase layer mechanism:

1, autotest testsuite layer
2, performance test
This commit is contained in:
debugtalk
2018-12-10 15:57:06 +08:00
parent 6fd92679e3
commit acfca8c07f
13 changed files with 677 additions and 425 deletions

View File

@@ -19,7 +19,7 @@ def is_testcase(data_structure):
"variables": [], # optional
"request": {} # optional
},
"tests": [
"teststeps": [
test_dict1,
{ # test_dict2
'name': 'test step desc2',
@@ -40,10 +40,10 @@ def is_testcase(data_structure):
if not isinstance(data_structure, dict):
return False
if "tests" not in data_structure:
if "teststeps" not in data_structure:
return False
if not isinstance(data_structure["tests"], list):
if not isinstance(data_structure["teststeps"], list):
return False
return True
@@ -67,7 +67,7 @@ def is_testcases(data_structure):
"path": "testcase1_path",
"variables": [], # optional
},
"tests": [
"teststeps": [
# test data structure
{
'name': 'test step desc1',