Ulrich Carmesin
3 years ago
22 changed files with 312 additions and 227 deletions
@ -0,0 +1,4 @@ |
|||||
|
#!/usr/bin/python |
||||
|
""" |
||||
|
constants for used for api-functions |
||||
|
""" |
@ -0,0 +1,9 @@ |
|||||
|
#!/usr/bin/python |
||||
|
""" |
||||
|
constants for used for api-functions |
||||
|
""" |
||||
|
|
||||
|
DEFAULT_DB_PARTITION = "n" |
||||
|
""" attribute if table is partitioned - partitions are parametrized """ |
||||
|
DEFAULT_DB_CONN_JAR = "n" |
||||
|
""" attribute for connection-jar-file instead of connection by ip, port """ |
@ -0,0 +1,28 @@ |
|||||
|
#!/usr/bin/python |
||||
|
""" |
||||
|
constants for used for api-functions |
||||
|
""" |
||||
|
|
||||
|
DDL_FILENAME = "DATASTRUCTURE" |
||||
|
|
||||
|
DDL_FNULLABLE = "nullable" |
||||
|
|
||||
|
DFILE_TYPE_YML = "yml" |
||||
|
DFILE_TYPE_JSON = "json" |
||||
|
DFILE_TYPE_CSV = "csv" |
||||
|
|
||||
|
DATA_SRC_DIR = "dir" |
||||
|
DATA_SRC_CSV = "csv" |
||||
|
|
||||
|
CSV_HEADER_START = ["node", "table", "tabelle"] |
||||
|
CSV_DELIMITER = ";" |
||||
|
|
||||
|
CSV_SPECTYPE_DATA = "data" |
||||
|
CSV_SPECTYPE_TREE = "tree" |
||||
|
CSV_SPECTYPE_KEYS = "keys" |
||||
|
CSV_SPECTYPE_CONF = "conf" |
||||
|
CSV_NODETYPE_KEYS = "_keys" |
||||
|
|
||||
|
ATTR_SRC_TYPE = "tdtyp" |
||||
|
ATTR_SRC_DATA = "tdsrc" |
||||
|
ATTR_SRC_NAME = "tdname" |
@ -0,0 +1,122 @@ |
|||||
|
#!/usr/bin/python |
||||
|
""" |
||||
|
constants for used for api-functions |
||||
|
""" |
||||
|
MATCH_SIDE_PREEXPECT = "preexpect" |
||||
|
""" it implies the precondition of the expectation """ |
||||
|
MATCH_DICT_PREEXPECT = { |
||||
|
"short": "SV", |
||||
|
"long": "Soll-Vorher", |
||||
|
"filepattern": "rsprecond" |
||||
|
} |
||||
|
MATCH_SIDE_POSTEXPECT = "postexpect" |
||||
|
""" it implies the postcondition of the expectation - it is the expectation""" |
||||
|
MATCH_DICT_POSTEXPECT = { |
||||
|
"short": "SN", |
||||
|
"long": "Soll-Nachher", |
||||
|
"filepattern": "rsprecond" |
||||
|
} |
||||
|
MATCH_SIDE_PREACTUAL = "preactual" |
||||
|
""" it implies the precondition of the actual execution """ |
||||
|
MATCH_DICT_PREACTUAL = { |
||||
|
"short": "IV", |
||||
|
"long": "Ist-Vorher", |
||||
|
"filepattern": "rsprecond" |
||||
|
} |
||||
|
MATCH_SIDE_POSTACTUAL = "postactual" |
||||
|
""" it implies the postondition of the actual execution - it is the result """ |
||||
|
MATCH_DICT_POSTACTUAL = { |
||||
|
"short": "IN", |
||||
|
"long": "Ist-Nachher", |
||||
|
"filepattern": "rsprecond" |
||||
|
} |
||||
|
MATCH_SIDE_PRESTEP = "prestep" |
||||
|
""" it implies the postcondition of a preceding step of the actual execution - the preceding step must be configured in the component""" |
||||
|
MATCH_DICT_PRESTEP = { |
||||
|
"short": "VS", |
||||
|
"long": "Vorhergehender Schritt (Nachher)", |
||||
|
"filepattern": "rsprecond" |
||||
|
} |
||||
|
MATCH_SIDE_TESTCASE = "testexample" |
||||
|
""" it implies the postcondition of an exemplary testcase - the exemplary testcase must be parametrized """ |
||||
|
MATCH_DICT_TESTCASE = { |
||||
|
"short": "VT", |
||||
|
"long": "Vergleichstestfall (Nachher)", |
||||
|
"filepattern": "rsprecond" |
||||
|
} |
||||
|
MATCH_SIDES = [MATCH_SIDE_PREEXPECT, MATCH_SIDE_POSTEXPECT, MATCH_SIDE_PREACTUAL, MATCH_SIDE_POSTACTUAL, MATCH_SIDE_PRESTEP, MATCH_SIDE_TESTCASE] |
||||
|
|
||||
|
MATCH_SUCCESS = "success" |
||||
|
""" matches the action between pre- and postcondition of the actual testexecution """ |
||||
|
MATCH_PRECOND = "preconditions" |
||||
|
""" matches the preconditions betwenn the required result the the actual testexecution |
||||
|
- just for info if the both executions have the same precondition """ |
||||
|
MATCH_POSTCOND = "postconditions" |
||||
|
""" matches the postconditions betwenn the required result the the actual testexecution |
||||
|
- it is the main comparison """ |
||||
|
MATCH_PRESTEP = "prestep" |
||||
|
MATCH_TESTEXAMPLE = "testeample" |
||||
|
MATCH_TYPES = [MATCH_PRECOND, MATCH_PRESTEP, MATCH_TESTEXAMPLE, MATCH_SUCCESS, MATCH_POSTCOND] |
||||
|
MATCH = { |
||||
|
MATCH_SIDE_PREEXPECT: MATCH_DICT_PREEXPECT, |
||||
|
MATCH_SIDE_POSTEXPECT: MATCH_DICT_POSTEXPECT, |
||||
|
MATCH_SIDE_PREACTUAL: MATCH_DICT_PREACTUAL, |
||||
|
MATCH_SIDE_POSTACTUAL: MATCH_DICT_POSTACTUAL, |
||||
|
MATCH_SIDE_PRESTEP: MATCH_DICT_PRESTEP, |
||||
|
MATCH_SIDE_TESTCASE: MATCH_DICT_TESTCASE, |
||||
|
MATCH_PRECOND: { |
||||
|
"A": MATCH_SIDE_PREEXPECT, |
||||
|
"B": MATCH_SIDE_PREACTUAL, |
||||
|
"shortA": "SV", |
||||
|
"shortB": "IV", |
||||
|
"longA": "Soll-Vorher", |
||||
|
"longB": "Ist-Vorher", |
||||
|
"mode": "info", |
||||
|
"filename": "01_Vorbedingungen", |
||||
|
"title": "Pruefung Vorbedingung (Soll-Vorher - Ist-Vorher)" |
||||
|
}, |
||||
|
MATCH_POSTCOND: { |
||||
|
"A": MATCH_SIDE_POSTEXPECT, |
||||
|
"B": MATCH_SIDE_POSTACTUAL, |
||||
|
"shortA": "SN", |
||||
|
"shortB": "IN", |
||||
|
"longA": "Soll-Nachher", |
||||
|
"longB": "Ist-Nachher", |
||||
|
"mode": "hard", |
||||
|
"filename": "00_Fachabgleich", |
||||
|
"title": "Fachliche Auswertung (Soll-Nachher - Ist-Nachher)" |
||||
|
}, |
||||
|
MATCH_SUCCESS: { |
||||
|
"A": MATCH_SIDE_PREACTUAL, |
||||
|
"B": MATCH_SIDE_POSTACTUAL, |
||||
|
"shortA": "IV", |
||||
|
"shortB": "IN", |
||||
|
"longA": "Ist-Vorher", |
||||
|
"longB": "Ist-Nachher", |
||||
|
"mode": "action", |
||||
|
"filename": "04_Ablauf", |
||||
|
"title": "Ablauf-Differenz (Ist-Vorher - Ist-Nachher)" |
||||
|
}, |
||||
|
MATCH_PRESTEP: { |
||||
|
"A": MATCH_SIDE_PRESTEP, |
||||
|
"B": MATCH_SIDE_POSTACTUAL, |
||||
|
"shortA": "VN", |
||||
|
"shortB": "IN", |
||||
|
"longA": "Vor-Schritt", |
||||
|
"longB": "Ist-Nachher", |
||||
|
"mode": "action", |
||||
|
"filename": "02_Vorschritt", |
||||
|
"title": "Schritt-Differenz (Vorschritt-Nachher - Ist-Nachher)" |
||||
|
}, |
||||
|
MATCH_TESTEXAMPLE: { |
||||
|
"A": MATCH_SIDE_TESTCASE, |
||||
|
"B": MATCH_SIDE_POSTACTUAL, |
||||
|
"shortA": "TN", |
||||
|
"shortB": "IN", |
||||
|
"longA": "Vergleich-Soll", |
||||
|
"longB": "Ist-Nachher", |
||||
|
"mode": "action", |
||||
|
"filename": "03_Vergleichstestfall", |
||||
|
"title": "Vergleichstestfall (Vergleich-Soll - Ist-Nachher)" |
||||
|
}, |
||||
|
} |
Loading…
Reference in new issue