|
|
@ -2,6 +2,7 @@ |
|
|
|
""" |
|
|
|
constants for used for api-functions |
|
|
|
""" |
|
|
|
import basic.constants as B |
|
|
|
|
|
|
|
DDL_FILENAME = "DATASTRUCTURE" |
|
|
|
|
|
|
@ -23,15 +24,44 @@ DDL_TYPE = "type" |
|
|
|
DFILE_TYPE_YML = "yml" |
|
|
|
DFILE_TYPE_JSON = "json" |
|
|
|
DFILE_TYPE_CSV = "csv" |
|
|
|
DFILE_TESTCASE_NAME = "testspec" |
|
|
|
DFILE_TESTSUITE_NAME = "testsuite" |
|
|
|
DFILE_TABLE_PREFIX = "table_" |
|
|
|
LIST_DFNAME_ATTR = [DFILE_TESTCASE_NAME, DFILE_TESTSUITE_NAME, DFILE_TABLE_PREFIX] |
|
|
|
LIST_DFNAME_CONST = ["DFILE_TESTCASE_NAME", "DFILE_TESTSUITE_NAME", "DFILE_TABLE_PREFIX"] |
|
|
|
|
|
|
|
DATA_SRC_DIR = "dir" |
|
|
|
DATA_SRC_CSV = "csv" |
|
|
|
|
|
|
|
DATA_ATTR_COUNT = "_count" |
|
|
|
""" statistical information of data-count """ |
|
|
|
DATA_ATTR_DATE = "_date" |
|
|
|
""" reference-date for computing the actual date in relation to specification or expectation """ |
|
|
|
DATA_ATTR_COMP = "_comp" |
|
|
|
""" reference to using componente with their object """ |
|
|
|
DATA_ATTR_CHAR = "_char" |
|
|
|
""" character of the data in order to delete it ión initialization """ |
|
|
|
DATA_ATTR_ALIAS = "_alias" |
|
|
|
LIST_DATA_ATTR = [DATA_ATTR_COUNT, DATA_ATTR_DATE, DATA_ATTR_CHAR, DATA_ATTR_COMP, DATA_ATTR_ALIAS] |
|
|
|
LIST_ATTR_CONST = ["DATA_ATTR_COUNT", "DATA_ATTR_DATE", "DATA_ATTR_CHAR", "DATA_ATTR_COMP", "DATA_ATTR_ALIAS"] |
|
|
|
|
|
|
|
HEAD_ATTR_DESCR = "decription" |
|
|
|
HEAD_ATTR_TARGET = "target" |
|
|
|
HEAD_ATTR_USECASE = "usecase" |
|
|
|
HEAD_ATTR_UCID = "usecase-id" |
|
|
|
HEAD_ATTR_STORY = "story" |
|
|
|
HEAD_ATTR_STORYID = "storyid-id" |
|
|
|
HEAD_ATTR_APPS = B.SUBJECT_APPS |
|
|
|
HEAD_ATTR_DEPR = "deprecated" |
|
|
|
LIST_HEAD_ATTR = [HEAD_ATTR_DESCR, HEAD_ATTR_TARGET, HEAD_ATTR_USECASE, HEAD_ATTR_UCID, |
|
|
|
HEAD_ATTR_STORY, HEAD_ATTR_STORYID, HEAD_ATTR_APPS, HEAD_ATTR_DEPR] |
|
|
|
LIST_HEAD_CONST = ["HEAD_ATTR_DESCR", "HEAD_ATTR_TARGET", "HEAD_ATTR_USECASE", "HEAD_ATTR_UCID", |
|
|
|
"HEAD_ATTR_STORY", "HEAD_ATTR_STORYID", "HEAD_ATTR_APPS", "HEAD_ATTR_DEPR"] |
|
|
|
|
|
|
|
|
|
|
|
CSV_HEADER_START = ["node", "table", "tabelle"] |
|
|
|
CSV_DELIMITER = ";" |
|
|
|
INTERNAL_DELIMITER = "||" |
|
|
|
|
|
|
|
""" |
|
|
|
internal structure of testdata |
|
|
@ -42,13 +72,26 @@ CSV_SPECTYPE_KEYS = "keys" |
|
|
|
CSV_SPECTYPE_CONF = "conf" |
|
|
|
CSV_NODETYPE_KEYS = "_keys" |
|
|
|
|
|
|
|
CSV_BLOCK_OPTION = "option" |
|
|
|
CSV_BLOCK_STEP = "step" |
|
|
|
CSV_BLOCK_HEAD = "_head" |
|
|
|
CSV_BLOCK_OPTION = B.DATA_NODE_OPTION |
|
|
|
CSV_BLOCK_STEP = B.DATA_NODE_STEPS |
|
|
|
CSV_BLOCK_TABLES = B.DATA_NODE_TABLES |
|
|
|
CSV_BLOCK_IMPORT = "_import" |
|
|
|
LIST_CSV_BLOCKS = [CSV_BLOCK_HEAD, CSV_BLOCK_OPTION, CSV_BLOCK_STEP, CSV_BLOCK_TABLES, CSV_BLOCK_IMPORT] |
|
|
|
LIST_BLOCK_CONST = ["CSV_BLOCK_HEAD", "CSV_BLOCK_OPTION", "CSV_BLOCK_STEP", "CSV_BLOCK_TABLES", "CSV_BLOCK_IMPORT"] |
|
|
|
|
|
|
|
STEP_COMP_I = 1 |
|
|
|
STEP_EXECNR_I = 2 |
|
|
|
STEP_REFNR_I = 3 |
|
|
|
STEP_ARGS_I = 4 |
|
|
|
STEP_LIST_I = 4 |
|
|
|
STEP_ATTR_COMP = "component" |
|
|
|
STEP_ATTR_EXECNR = "exec-step" |
|
|
|
STEP_ATTR_REFNR = "reference-nr" |
|
|
|
STEP_ATTR_ARGS = "arguments" |
|
|
|
LIST_STEP_ATTR = [STEP_ATTR_COMP, STEP_ATTR_EXECNR, STEP_ATTR_REFNR, STEP_ATTR_ARGS] |
|
|
|
LIST_STEP_CONST = ["STEP_ATTR_COMP", "STEP_ATTR_EXECNR", "STEP_ATTR_REFNR", "STEP_ATTR_ARGS"] |
|
|
|
|
|
|
|
EXCP_MALFORMAT = "malformated line: " |
|
|
|
|
|
|
|
ATTR_SRC_TYPE = "tdtyp" |
|
|
|