@ -20,108 +20,160 @@ The constants desribes the keywords of the main datastructures, these are
"""
"""
import os
import os
# -------------------------------------------------------------
home = " "
# values and keywords
if home == " " :
BASIS_FILE = " basis "
home = os . getcwd ( )
prgdir = " "
SVAL_YES = " y "
if home [ - 4 : ] == " test " :
SVAL_NO = " n "
home = home [ 0 : - 5 ]
SVAL_NULL = " null "
if home [ - 10 : ] == " components " :
home = home [ 0 : - 11 ]
# -------------------------------------------------------------
if home [ - 9 : ] == " program " :
# parameter with arguments
prgdir = home [ - 6 : ]
PAR_PROGRAM = ' program '
home = home [ 0 : - 7 ]
PAR_USER = ' user '
elif home [ - 7 : ] == " program " :
PAR_GRAN = " gran "
prgdir = home [ - 7 : ]
PAR_PROJ = ' project '
home = home [ 0 : - 8 ]
""" definition of the project which will be tested """
HOME_PATH = home
PAR_APP = ' application '
""" definition of the application which will be tested """
PAR_ENV = ' environment '
""" definition of the environment where the application runs which will be tested """
PAR_VAR = ' variant '
""" definition of a variant dataflow especially the channel """
PAR_REL = ' release '
""" definition of the release of the application which will be tested """
PAR_BASEDIR = ' basedir '
PAR_DIRNAME = ' dirname '
PAR_TSDIR = ' tsdir '
""" definition of the directory of the testsuite for summaries of the testcases """
PAR_TCDIR = ' tcdir '
""" definition of the directory of the testcase for logs and results """
PAR_XPDIR = ' xpdir '
""" definition of the directory of expectation for comparing the testcase """
PAR_WSDIR = " wsdir "
""" definition of the directory of the workspace """
PAR_TDTYP = ' tdtyp '
PAR_TDSRC = ' tdsrc '
PAR_TDNAME = ' tdname '
PAR_LOG = ' loglevel '
PAR_MODUS = ' modus '
PAR_COMP = ' component '
PAR_FCT = ' function '
PAR_TOOL = ' tool '
PAR_STEP = ' step '
PAR_DESCRIPT = ' desription '
PAR_STRING = ' parstring '
""" """
PAR_TESTPLAN = " testplan "
PAR_TESTCASE = " testcase "
PAR_TESTCASES = " testcases "
PAR_TESTSUITE = " testsuite "
# todo Trennung testsuite - usecase denn n:1-Zuordnung
PAR_TPTIME = " tptime "
PAR_TCTIME = " tctime "
PAR_TSTIME = " tstime "
PAR_TESTINSTANCES = " testinstances "
""" name of testcase extracted from PAR_TCDIR """
PAR_DB_WHERE = " dbwhere "
""" optional parameter with a where-clause """
PAR_DB_PARTITION = " dbparts "
""" optional parameter for partitions of a partitioned tables """
LIST_MAIN_PAR = [ PAR_APP , PAR_ENV , PAR_VAR , PAR_REL , PAR_TCDIR , PAR_TSDIR ]
# -------------------------------------------------------------
# attributes
# -------- -----------------------------------------------------
# -- example -----------------------------------------------------
# structur e - nodes
# example testcase - nodes
# the internal datastructure is a tree with this design:
# the internal datastructure is a tree with this design:
# root { : constant
# root { : subject itself - subject-singular-constant
# + option { : constant
# + option { : subtable of subject - subject-plural-constant
# + steps
# + attribute : attribute of subtable - allowed attribute-names in data-const LIST_ATTR_<subject>
# + stories : subtable of subject
# + <NAME> : element of subtable - the unique name
# + name : redundant name-attribute
# + attribute : some main attributes
# + datas :
# + <NAME> : table name
# + ddl : topic, functionality relating to ddl
# + _header [ : specific data-node of the topic - constant
# - fields : variable field-name
# + steps : special topic
#
# + comp { : variable component-name
# + comp { : variable component-name
# + substructure { : variable maybe scheme, table of a database-component
# + substructure { : variable maybe scheme, table of a database-component
# + + _header [ : constant
# + + _header [ : constant
# - fields : variable field-name
# - fields : variable field-name
""" This constant defines a subnode of a table for the column-names """
# -------------------------------------------------------------
CONF_NODE_GENERAL = " _general "
""" it defines a subnode of a table for the column-names """
# --Domain ----------------------------------------------------
DATA_NODE_HEADER = " _header "
# ____ _
""" it defines a subnode of a table for the field-list, used for ddl """
# | _ \ ___ _ __ ___ __ _(_)_ __
DATA_NODE_FIELDS = " _fields "
# | | | |/ _ \| '_ ` _ \ / _` | | '_ \
""" it defines a subnode of a table for the data as key-value-pair, keys from header """
# | |_| | (_) | | | | | | (_| | | | | |
DATA_NODE_DATA = " _data "
# |____/ \___/|_| |_| |_|\__,_|_|_| |_|
""" it defines the main node in the testdata for the steps to execute """
#
DATA_NODE_STEPS = " _step "
# -------------------------------------------------------------
""" it defines main node in the testdata for testcase specific parameters """
DOM_PROJECT = " project "
DATA_NODE_OPTION = " _option "
"""
DATA_NODE_HEAD = " _head "
this domain is relating to project - management and - knowledge
DATA_NODE_ARGS = " _arguments "
subjects of the domain are :
""" it defines arguments as internal key-value-pairs by delimted with :, used in steps """
- project
""" This constant defines the main node in the testdata for the steps to execute """
- application
DATA_NODE_TABLES = " _tables "
- release
DATA_NODE_KEYS = " _keys "
topics relating to the domain are :
""" This constant defines the node for data scheme (DataDefinitionLanguage)
"""
The fields are defined in data_const ( D ) """
DOM_SPECIFICATION = " specification "
DATA_NODE_DDL = " ddl "
"""
DATA_NODE_COMP = " comp "
this domain is relating to project - management and - knowledge
""" This constant defines """
subjects of the domain are :
DATA_NODE_PAR = " par "
- application
DATA_NODE_CATALOG = " _catalog "
- usercase
DATA_NODE_ROW = " _row "
- variant
LIST_DATA_NODE = [ DATA_NODE_HEADER , DATA_NODE_DATA , DATA_NODE_DDL ,
- release
DATA_NODE_TABLES , DATA_NODE_STEPS , DATA_NODE_OPTION , DATA_NODE_ROW ]
- story
topics relating to the domain are :
"""
DOM_TEST = " test "
"""
this domain is relating to project - management and - knowledge
subjects of the domain are :
- testplan
- release
- testsuite
- application
- variant
- testcase
- application
- usercase
- variant
- story
- option
- data
- step
- testreport
- release
- artifact
topics relating to the domain are :
"""
DOM_IMPLEMENTATION = " implementation "
"""
this domain is relating to project - management and - knowledge
subjects of the domain are :
- component
- artifact
- data
- step
topics relating to the domain are :
- db
- cli
- api
- conn
- ddl
"""
DOM_INSTALLATION = " installation "
"""
this domain is relating to project - management and - knowledge
subjects of the domain are :
- environent
- component
topics relating to the domain are :
- db
- cli
- api
- conn
- instance
"""
# --Subject ----------------------------------------------------
# ____ _ _ _
# / ___| _ _| |__ (_) ___ ___| |_
# \___ \| | | | '_ \| |/ _ \/ __| __|
# ___) | |_| | |_) | | __/ (__| |_
# |____/ \__,_|_.__// |\___|\___|\__|
# |__/
# -------------------------------------------------------------
# the configuration of a component or tool
# entity { : variable name of the group, xbasic, component-name or tool-name
# + subject { : variable subject-name - it correspondends to a tool
# + + sub-subject { : variable subject-name - it correspondends to a tool
# + attributes : constant of the tool in which the attribute ist implemented
# the main subjects # prog xbasic envir tool comp testcase main implentation module
""" This constant defines the debug-folder in testing-filesystem """
SUBJECT_PROJECT = " project "
SUBJECT_PROJECTS = SUBJECT_PROJECT + " s "
SUBJECT_APP = " application "
SUBJECT_APPS = " applications " #
SUBJECT_COMP = " component "
SUBJECT_COMPS = SUBJECT_COMP + " s "
SUBJECT_USECASE = " usecase "
SUBJECT_USECASES = SUBJECT_USECASE + " s "
SUBJECT_REL = " release "
SUBJECT_RELS = SUBJECT_REL + " s "
SUBJECT_TESTCASE = " testcase "
SUBJECT_TESTCASES = SUBJECT_TESTCASE + " s "
SUBJECT_TESTSUITE = " testsuite "
SUBJECT_TESTSUITES = SUBJECT_TESTSUITE + " s "
SUBJECT_TESTPLAN = " testplan "
SUBJECT_TESTPLANS = SUBJECT_TESTPLAN + " s "
SUBJECT_ARTIFACT = " artifact "
SUBJECT_ARTIFACTS = SUBJECT_ARTIFACT + " s "
ATTR_ARTS_LOG = " log "
ATTR_ARTS_LOB = " lob "
ATTR_ARTS_FILE = " file "
ATTR_ARTS_TYPE = " type "
ATTR_ARTS_TYPE = " type "
""" must attribute for the type of the technique """
""" must attribute for the type of the technique """
ATTR_ARTS_NAME = " name "
ATTR_ARTS_NAME = " name "
@ -133,7 +185,69 @@ ATTR_ARTS_RESET = "reset"
ATTR_ARTS_PRESTEP = " prestep "
ATTR_ARTS_PRESTEP = " prestep "
""" optional attribute to define a source-table for this table """
""" optional attribute to define a source-table for this table """
LIST_ARTS_ATTR = [ ATTR_ARTS_TYPE , ATTR_ARTS_PATH , ATTR_ARTS_RESET , ATTR_ARTS_PRESTEP , ATTR_ARTS_NAME ]
LIST_ARTS_ATTR = [ ATTR_ARTS_TYPE , ATTR_ARTS_PATH , ATTR_ARTS_RESET , ATTR_ARTS_PRESTEP , ATTR_ARTS_NAME ]
SUBJECT_VARIANTS = " variants "
SUBJECT_ENVIRONMENT = ' environment '
SUBJECT_ENVIRONMENTS = SUBJECT_ENVIRONMENT + " s "
SUBJECT_STORY = " story "
SUBJECT_STORIES = " stories "
SUBJECT_DESCRIPTION = " description " # --> MAIN-ATTR
SUBJECT_REFERENCE = " reference " # --> MAIN-ATTR
LIST_SUBJECTS = [ SUBJECT_APPS , SUBJECT_ARTIFACT , SUBJECT_COMPS , SUBJECT_PROJECTS ]
# --Topic -----------------------------------------------------
# _____ _
# |_ _|__ _ __ (_) ___
# | |/ _ \| '_ \| |/ __|
# | | (_) | |_) | | (__
# |_|\___/| .__/|_|\___|
# |_|
# -------------------------------------------------------------
# topics
"""
in this subject - node are each kind of result of any component with the structure :
* topic ( db , cli , api , . . . )
* * general attributes - to - know : technical attributes are stored in connection - tree
* * partial - component - to - know : the existence of db - tables can be defined in the ddl - tree
* * * specific attributes - it overrides the general attributes
"""
TOPIC_INST = " instance "
ATTR_INST_CNT = " count " #
ATTR_INST_SGL = " single "
LIST_INST_ATTR = [ ATTR_INST_CNT , ATTR_INST_SGL ]
ATTR_INST_SUBCOMP = SUBJECT_COMPS
ATTR_INST_TESTSERVER = " Testserver "
TOPIC_PATH = " paths "
ATTR_PATH_MODE = " mode "
""" This constant defines the home-folder in filesystem of test """
ATTR_PATH_HOME = " home "
""" This constant defines the home-folder in testing-filesystem """
ATTR_PATH_DEBUG = " debugs "
""" This constant defines the debug-folder in testing-filesystem """
ATTR_PATH_ARCHIV = " archiv "
""" This constant defines the folder in testing-filesystem for results and log of execution """
ATTR_PATH_EXPECT = " expect "
""" This constant defines the folder in testing-filesystem for test-expectation values """
ATTR_PATH_PROGRAM = " program "
""" This constant defines the program-folder in the workspace """
ATTR_PATH_COMPS = " components "
""" This constant defines the subfolder in the program-folder in the workspace """
ATTR_PATH_ENV = " environment "
""" This constant defines the folder in testing-filesystem, used for configs related to environments """
ATTR_PATH_RELEASE = " release "
""" This constant defines the folder in testing-filesystem, used for configs related to release """
ATTR_PATH_TDATA = " testdata "
""" This constant defines the folder in testing-filesystem with the testcase-specifications """
ATTR_PATH_PATTN = " pattern "
""" This constant defines the debug-folder in testing-filesystem """
# SUBJECT_FCT = "function" # --> TOPIC
TOPIC_DDL = " ddl "
ATTR_TYPE = " type " #
RULE_ACCEPTANCE = " acceptance " #
ATTR_STEP_ARGS = " args "
ATTR_EXEC_REF = " _exec "
ATTR_DATA_REF = " _nr "
ATTR_DATA_COMP = " _comp "
TOPIC_TOOL = " tool " # ?? -> TOPIC
TOPIC_NODE_DB = " db "
TOPIC_NODE_DB = " db "
# testexec, db_abstr
# testexec, db_abstr
ATTR_DB_PARTITION = " partitioned "
ATTR_DB_PARTITION = " partitioned "
@ -153,6 +267,20 @@ ATTR_DB_HOST = "hostname"
""" optional attribute in order to use a different technical name for the db-table """
""" optional attribute in order to use a different technical name for the db-table """
LIST_DB_ATTR = [ ATTR_DB_PARTITION , ATTR_DB_DATABASE , ATTR_DB_SCHEMA , ATTR_DB_TABNAME , ATTR_ARTS_PRESTEP ,
LIST_DB_ATTR = [ ATTR_DB_PARTITION , ATTR_DB_DATABASE , ATTR_DB_SCHEMA , ATTR_DB_TABNAME , ATTR_ARTS_PRESTEP ,
ATTR_DB_USER , ATTR_DB_PASSWD , ATTR_DB_HOST ] + LIST_ARTS_ATTR
ATTR_DB_USER , ATTR_DB_PASSWD , ATTR_DB_HOST ] + LIST_ARTS_ATTR
TOPIC_CONN = " conn "
ATTR_DB_CONN_JAR = " conn_jar_name "
""" optional attribute for connection-jar-file instead of connection by ip, port """
ATTR_CONN_HOST = " hostname "
""" optional attribute for connection-jar-file instead of connection by ip, port """
ATTR_CONN_TENANT = " tenant "
""" optional attribute for connection-jar-file instead of connection by ip, port """
ATTR_CONN_IP = " ip "
ATTR_CONN_PORT = " port "
ATTR_CONN_DOMPATH = " dompath "
""" directory where the component is stored in the filesystem """
ATTR_CONN_USER = " user "
ATTR_CONN_PASSWD = " password "
LIST_CONN_ATTR = [ ATTR_CONN_HOST , ATTR_CONN_IP , ATTR_CONN_PORT , ATTR_CONN_DOMPATH , ATTR_CONN_USER , ATTR_CONN_PASSWD ]
TOPIC_NODE_CLI = " cli "
TOPIC_NODE_CLI = " cli "
LIST_CLI_ATTR = [ ] + LIST_ARTS_ATTR
LIST_CLI_ATTR = [ ] + LIST_ARTS_ATTR
TOPIC_NODE_API = " api "
TOPIC_NODE_API = " api "
@ -161,146 +289,137 @@ TOPIC_NODE_FILE = "file"
ATTR_FILE_OLD = " oldfile "
ATTR_FILE_OLD = " oldfile "
ATTR_FILE_ROTATE = " rotate "
ATTR_FILE_ROTATE = " rotate "
NODE_ATTRIBUTES = " attributes "
NODE_ATTRIBUTES = " attributes "
LIST_FILE_ATTR = [ ATTR_FILE_OLD , ATTR_FILE_ROTATE ] + LIST_ARTS_ATTR
LIST_FILE_ATTR = [ ATTR_FILE_OLD , ATTR_FILE_ROTATE ] + LIST_ARTS_ATTR
LIST_TOPIC_NODES = [ TOPIC_NODE_FILE , TOPIC_NODE_DB , TOPIC_NODE_CLI , TOPIC_NODE_API ]
LIST_ATTR = {
LIST_ATTR = {
TOPIC_NODE_DB : LIST_DB_ATTR ,
TOPIC_NODE_DB : LIST_DB_ATTR ,
TOPIC_NODE_API : LIST_API_ATTR ,
TOPIC_NODE_API : LIST_API_ATTR ,
TOPIC_NODE_CLI : LIST_CLI_ATTR ,
TOPIC_NODE_CLI : LIST_CLI_ATTR ,
TOPIC_NODE_FILE : LIST_FILE_ATTR
TOPIC_NODE_FILE : LIST_FILE_ATTR
}
}
LIST_TOPIC_NODES = [ TOPIC_NODE_FILE , TOPIC_NODE_DB , TOPIC_NODE_CLI , TOPIC_NODE_API ]
ATTR_DB_CONN_JAR = " conn_jar_name "
# -- data nodes -----------------------------------------------
""" optional attribute for connection-jar-file instead of connection by ip, port """
# ____ _ _ _ _
ATTR_CONN_HOST = " hostname "
# | _ \ __ _| |_ __ _ | \ | | ___ __| | ___ ___
""" optional attribute for connection-jar-file instead of connection by ip, port """
# | | | |/ _` | __/ _` |_____| \| |/ _ \ / _` |/ _ \/ __|
ATTR_CONN_TENANT = " tenant "
# | |_| | (_| | || (_| |_____| |\ | (_) | (_| | __/\__ \
""" optional attribute for connection-jar-file instead of connection by ip, port """
# |____/ \__,_|\__\__,_| |_| \_|\___/ \__,_|\___||___/
ATTR_CONN_IP = " ip "
#
ATTR_CONN_PORT = " port "
# -------------------------------------------------------------
ATTR_CONN_DOMPATH = " dompath "
""" This constant defines a subnode of a table for the column-names """
""" directory where the component is stored in the filesystem """
CONF_NODE_GENERAL = " _general "
ATTR_CONN_USER = " user "
""" it defines a subnode of a table for the column-names """
ATTR_CONN_PASSWD = " password "
DATA_NODE_HEADER = " _header "
LIST_CONN_ATTR = [ ATTR_CONN_HOST , ATTR_CONN_IP , ATTR_CONN_PORT , ATTR_CONN_DOMPATH , ATTR_CONN_USER , ATTR_CONN_PASSWD ]
""" it defines a subnode of a table for the field-list, used for ddl """
DATA_NODE_FIELDS = " _fields "
# the configuration of a component or tool
""" it defines a subnode of a table for the data as key-value-pair, keys from header """
# entity { : variable name of the group, xbasic, component-name or tool-name
DATA_NODE_DATA = " _data "
# + subject { : variable subject-name - it correspondends to a tool
""" it defines the main node in the testdata for the steps to execute """
# + + sub-subject { : variable subject-name - it correspondends to a tool
DATA_NODE_STEPS = " _step " ## ?? SUBJECT
# + attributes : constant of the tool in which the attribute ist implemented
""" it defines main node in the testdata for testcase specific parameters """
DATA_NODE_OPTION = " _option " ## ?? SUBJECT
# the main subjects # prog xbasic envir tool comp testcase main implentation module
DATA_NODE_HEAD = " _head " ## ??
SUBJECT_PATH = " paths " # | x | | x | | path_tool, config_tool
DATA_NODE_ARGS = " _arguments "
""" This constant defines the subject in order to define paths of filesystem of any testuse """
""" it defines arguments as internal key-value-pairs by delimted with :, used in steps """
ATTR_PATH_MODE = " mode "
""" This constant defines the main node in the testdata for the steps to execute """
""" This constant defines the home-folder in filesystem of test """
DATA_NODE_TABLES = " _tables " # ?? SUBJECT
ATTR_PATH_HOME = " home "
DATA_NODE_KEYS = " _keys "
""" This constant defines the home-folder in testing-filesystem """
""" This constant defines the node for data scheme (DataDefinitionLanguage)
ATTR_PATH_DEBUG = " debugs "
The fields are defined in data_const ( D ) """
""" This constant defines the debug-folder in testing-filesystem """
DATA_NODE_DDL = " ddl " # ?? TOPIC
ATTR_PATH_ARCHIV = " archiv "
DATA_NODE_COMP = " comp " # ?? SUBJECT
""" This constant defines the folder in testing-filesystem for results and log of execution """
""" This constant defines """
ATTR_PATH_EXPECT = " expect "
DATA_NODE_PAR = " par "
""" This constant defines the folder in testing-filesystem for test-expectation values """
DATA_NODE_CATALOG = " _catalog "
ATTR_PATH_PROGRAM = " program "
DATA_NODE_ROW = " _row "
""" This constant defines the program-folder in the workspace """
DATA_NODE_SUBTABLES = " subtables " # ?? SUBJECT
ATTR_PATH_COMPS = " components "
LIST_DATA_NODE = [ DATA_NODE_HEADER , DATA_NODE_DATA , DATA_NODE_DDL ,
""" This constant defines the subfolder in the program-folder in the workspace """
DATA_NODE_TABLES , DATA_NODE_STEPS , DATA_NODE_OPTION , DATA_NODE_ROW ]
ATTR_PATH_ENV = " environment "
""" This constant defines the folder in testing-filesystem, used for configs related to environments """
ATTR_PATH_RELEASE = " release "
""" This constant defines the folder in testing-filesystem, used for configs related to release """
ATTR_PATH_TDATA = " testdata "
""" This constant defines the folder in testing-filesystem with the testcase-specifications """
ATTR_PATH_PATTN = " pattern "
""" This constant defines the debug-folder in testing-filesystem """
SUBJECT_APP = " application "
SUBJECT_APPS = " applications " # | x | | | | CompHandling
ATTR_APPS_PROJECT = " project " # | | | | x | CompHanlding
SUBJECT_ENTITY = " entity "
SUBJECT_INST = " instance " # | | | | x | CompHanlding
ATTR_INST_CNT = " count " # | | | | x | CompHanlding
ATTR_INST_SGL = " single "
LIST_INST_ATTR = [ ATTR_INST_CNT , ATTR_INST_SGL ]
SUBJECT_COMP = " component "
SUBJECT_COMPS = SUBJECT_COMP + " s "
ATTR_INST_SUBCOMP = SUBJECT_COMPS
ATTR_INST_TESTSERVER = " Testserver "
#SUBJECT_FCT = "function" # | | | | x | main-programs
SUBJECT_USECASE = " usecase "
SUBJECT_USECASES = SUBJECT_USECASE + " s "
SUBJECT_REL = " release "
SUBJECT_RELS = SUBJECT_REL + " s "
SUBJECT_TESTCASE = " testcase "
SUBJECT_TESTCASES = SUBJECT_TESTCASE + " s "
SUBJECT_TESTSUITE = " testsuite "
SUBJECT_TESTSUITES = SUBJECT_TESTSUITE + " s "
SUBJECT_TESTPLAN = " testplan "
SUBJECT_TESTPLANS = SUBJECT_TESTPLAN + " s "
"""
in this subject - node are each kind of result of any component with the structure :
* topic ( db , cli , api , . . . )
* * general attributes - to - know : technical attributes are stored in connection - tree
* * partial - component - to - know : the existence of db - tables can be defined in the ddl - tree
* * * specific attributes - it overrides the general attributes
"""
SUBJECT_ARTS = " artifact " # | | | | x | Component
SUBJECT_VARIANTS = " variants "
#ATTR_ARTS_DB = "db"
ATTR_ARTS_LOG = " log "
ATTR_ARTS_LOB = " lob "
ATTR_ARTS_FILE = " file "
#SUBJECT_DB = "databases" # | | | | # | db*_tools, match_tool
SUBJECT_PROJECT = " project "
SUBJECT_PROJECTS = SUBJECT_PROJECT + " s "
SUBJECT_ENV = PAR_ENV
SUBJECT_STORY = " story "
SUBJECT_STORIES = " stories "
SUBJECT_CONN = " conn " # | | x | | | conn_tool, db*_tools, cli*_toold
ATTR_TYPE = " type " # | x | x | | x | conn_tool, toolHandling, db*_tools
RULE_ACCEPTANCE = " acceptance " # | | | | x | tools_match
# -- Parameter ------------------------------------------------
# ____ _
# | _ \ __ _ _ __ __ _ _ __ ___ ___| |_ ___ _ __
# | |_) / _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__|
# | __/ (_| | | | (_| | | | | | | __/ || __/ |
# |_| \__,_|_| \__,_|_| |_| |_|\___|\__\___|_|
#
# -------------------------------------------------------------
PAR_PROGRAM = ' program '
PAR_USER = ' user '
PAR_GRAN = " gran "
PAR_PROJ = ' project '
""" definition of the project which will be tested """
PAR_APP = ' application '
""" definition of the application which will be tested """
PAR_ENV = ' environment '
""" definition of the environment where the application runs which will be tested """
PAR_VAR = ' variant '
""" definition of a variant dataflow especially the channel """
PAR_REL = ' release '
""" definition of the release of the application which will be tested """
PAR_BASEDIR = ' basedir '
PAR_DIRNAME = ' dirname '
PAR_TSDIR = ' tsdir '
""" definition of the directory of the testsuite for summaries of the testcases """
PAR_TCDIR = ' tcdir '
""" definition of the directory of the testcase for logs and results """
PAR_XPDIR = ' xpdir '
""" definition of the directory of expectation for comparing the testcase """
PAR_WSDIR = " wsdir "
""" definition of the directory of the workspace """
PAR_TDTYP = ' tdtyp '
PAR_TDSRC = ' tdsrc '
PAR_TDNAME = ' tdname '
PAR_LOG = ' loglevel '
PAR_MODUS = ' modus '
PAR_COMP = ' component '
PAR_FCT = ' function '
PAR_TOOL = ' tool '
PAR_STEP = ' step '
PAR_DESCRIPT = ' desription '
PAR_STRING = ' parstring '
""" """
PAR_TESTPLAN = " testplan "
PAR_TESTCASE = " testcase "
PAR_TESTCASES = " testcases "
PAR_TESTSUITE = " testsuite "
# todo Trennung testsuite - usecase denn n:1-Zuordnung
PAR_TPTIME = " tptime "
PAR_TCTIME = " tctime "
PAR_TSTIME = " tstime "
PAR_TESTINSTANCES = " testinstances "
""" name of testcase extracted from PAR_TCDIR """
PAR_DB_WHERE = " dbwhere "
""" optional parameter with a where-clause """
PAR_DB_PARTITION = " dbparts "
""" optional parameter for partitions of a partitioned tables """
LIST_MAIN_PAR = [ PAR_APP , PAR_ENV , PAR_VAR , PAR_REL , PAR_TCDIR , PAR_TSDIR ]
ATTR_STEP_ARGS = " args "
# -- attributes -----------------------------------------------
ATTR_EXEC_REF = " _exec "
# _ _ _ _ _
ATTR_DATA_REF = " _nr "
# __ _| |_| |_ _ __(_) |__ _ _| |_ ___ ___
ATTR_DATA_COMP = " _comp "
# / _` | __| __| '__| | '_ \| | | | __/ _ \/ __|
# | (_| | |_| |_| | | | |_) | |_| | || __/\__ \
# \__,_|\__|\__|_| |_|_.__/ \__,_|\__\___||___/
#
# -------------------------------------------------------------
SUBJECT_DESCRIPTION = " description "
# -- key-values -----------------------------------------------
SUBJECT_REFERENCE = " reference "
# _ _
# | | _____ _ ___ ____ _| |_ _ ___ ___
# | |/ / _ \ | | \ \ / / _` | | | | |/ _ \/ __|
# | < __/ |_| |\ V / (_| | | |_| | __/\__ \
# |_|\_\___|\__, | \_/ \__,_|_|\__,_|\___||___/
# |___/
# -------------------------------------------------------------
BASIS_FILE = " basis "
SVAL_YES = " y "
SVAL_NO = " n "
SVAL_NULL = " null "
SUBJECT_TOOL = " tool "
LIST_SUBJECTS = [ SUBJECT_APPS , SUBJECT_ARTS , SUBJECT_CONN , SUBJECT_COMPS , SUBJECT_INST , SUBJECT_TOOL , SUBJECT_PROJECTS ]
# -------------------------------------------------------------
# -------------------------------------------------------------
# exception texts
# exception texts
EXP_NO_BASIS_FILE = " basis file cant be found "
EXP_NO_BASIS_FILE = " basis file cant be found "
EXCEPT_NOT_IMPLEMENT = " method is not implemented "
EXCEPT_NOT_IMPLEMENT = " method is not implemented "
EXCEPT_NOT_INITIALIZED = " class is not initialized "
EXCEPT_NOT_INITIALIZED = " class is not initialized "
home = os . getcwd ( )
prgdir = " "
if home [ - 4 : ] == " test " :
home = home [ 0 : - 5 ]
if home [ - 10 : ] == " components " :
home = home [ 0 : - 11 ]
if home [ - 9 : ] == " program " :
prgdir = home [ - 6 : ]
home = home [ 0 : - 7 ]
elif home [ - 7 : ] == " program " :
prgdir = home [ - 7 : ]
home = home [ 0 : - 8 ]
HOME_PATH = home