Data-Test-Executer Framework speziell zum Test von Datenverarbeitungen mit Datengenerierung, Systemvorbereitungen, Einspielungen, ganzheitlicher diversifizierender Vergleich
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

162 lines
5.1 KiB

import basic.constants as B
from basic import constants as B
PROG_TC_INIT = "init_testcase"
PROG_TC_EXECUTE = "execute_testcase"
PROG_TC_COLLECT = "collect_testcase"
PROG_TC_COMPARE = "compare_testcase"
PROG_TS_INIT = "init_testsuite"
PROG_TS_EXECUTE = "execute_testsuite"
PROG_TS_COLLECT = "collect_testsuite"
PROG_TS_FINISH = "finish_testsuite"
PROG_TEST_EXECUTER = "test_executer"
LIST_TC_PROGS = [PROG_TC_INIT, PROG_TC_EXECUTE, PROG_TC_COLLECT, PROG_TC_COMPARE]
LIST_TS_PROGS = [PROG_TS_INIT, PROG_TS_EXECUTE, PROG_TS_COLLECT, PROG_TS_FINISH]
PROG_CHECK_ENV = "check_environment"
PROG_CHECK_CONF = "check_configuration"
PROG_CHECK_SPEC = "check_specification"
PROG_UNZIP_RESULT = "unzip_result"
PROG_DECLARE_RESULT = "declare_result"
PROG_CLEAN_WORKSPACE = "clean_workspace"
PROG_MAKE_WORKSPACE = "make_workspace"
PROG_UNIT_TESTER = "unit_tester"
LIST_SERVICE_PROG = [PROG_CHECK_ENV, PROG_CHECK_CONF, PROG_CHECK_SPEC, PROG_UNZIP_RESULT, PROG_DECLARE_RESULT,
PROG_CLEAN_WORKSPACE, PROG_MAKE_WORKSPACE, PROG_UNIT_TESTER]
PROC_TP_EXECUTION = "Testplan ausfuehren"
PROC_TS_EXECUTION = "Testsuite ausfuehren"
PROC_TS_STEPWISE = "Testsuite Job fuer Job ausfuehren"
PROC_TC_EXECUTION = "Testfall ausfuehren"
PROC_TC_STEPWISE = "Testfall Job fuer Job ausfuehren"
PROC_REDO_EXECUTION = "Job der Testausfuehrung wiederholen"
PROC_SINGLE_JOB = "Einzelnes Programm ausfuehren"
LIST_PROC = [PROC_TP_EXECUTION, PROC_TS_EXECUTION, PROC_TS_STEPWISE, PROC_TC_EXECUTION, PROC_TC_STEPWISE,
PROC_REDO_EXECUTION, PROC_SINGLE_JOB]
GRAN_TP = "Testplan"
GRAN_TS = "Testsuite"
GRAN_TC = "Testfall"
LIST_GRAN = [GRAN_TP, GRAN_TS, GRAN_TC]
MODEL_PROC = "proc"
MODEL_GRAN = "gran"
ARG_TESTELEM = "testelem"
MODEL_APP = B.PAR_APP
MODEL_ENV = B.PAR_ENV
MODEL_COMP = B.PAR_COMP
MODEL_RELEASE = B.PAR_REL
LIST_MODEL = [MODEL_APP, MODEL_ENV, MODEL_COMP, MODEL_RELEASE]
CHOICE_GRAN = "Testgranularitaet auswaehlen"
CHOICE_APP = "Anwendung auswaehlen"
CHOICE_COMP = "Komponente auswaehlen"
CHOICE_ENV = "Umgebung auswaehlen"
CHOICE_SPEC = "Testspezifikation auswaehlen"
CHOICE_TP = "Testplan auswaehlen"
CHOICE_TS = "Testsuite auswaehlen"
CHOICE_TC = "Testfall auswaehlen"
CHOICE_ARCHIV = "Testausfuehrung auswaehlen"
CHOICE_TIME = "Testzeit auswaehlen"
CHOICE_VARIANT = "Testvariante auswaehlen"
# the sequence of a complete testexecution
STEP_INIT_TP = "10"
STEP_INIT_TS = "12"
STEP_INIT_TC = "14"
STEP_EXEC_TS1 = "22"
STEP_BREAK_AFTER_TC1 = "99"
""" break before exec_tc1 between testcases """
STEP_EXEC_TC1 = "24"
STEP_BREAK_BETWEEN_TC = "98"
""" break between exec_tc1 and exec_tc2 """
STEP_EXEC_TC2 = "26"
STEP_BREAK_BEFORE_TC2 = "97"
""" break after exec_tc2 between testcases """
STEP_EXEC_TS2 = "28"
STEP_COLL_TC = "36"
STEP_COLL_TS = "38"
STEP_COMP_TC = "46"
STEP_COMP_TS = "48"
STEP_FIN_TC = "56"
STEP_FIN_TS = "58"
STEP_FIN_TP = "60"
""" conditional break if basic configured as not full-automatized """
STEPS_DEFINITON = {
STEP_INIT_TP: {
B.SUBJECT_TESTPLAN: 1
},
STEP_INIT_TS: {
B.SUBJECT_TESTPLAN: 2,
B.SUBJECT_TESTSUITE: 1
},
STEP_INIT_TC: {
B.SUBJECT_TESTPLAN: 3,
B.SUBJECT_TESTSUITE: 2,
B.SUBJECT_TESTCASE: 1
},
STEP_EXEC_TS1:{
B.SUBJECT_TESTPLAN: 4,
B.SUBJECT_TESTSUITE: 3
},
STEP_EXEC_TC1: {
B.SUBJECT_TESTPLAN: 5,
B.SUBJECT_TESTSUITE: 4,
B.SUBJECT_TESTCASE: 2
},
STEP_BREAK_AFTER_TC1: {
B.SUBJECT_TESTPLAN: 6,
B.SUBJECT_TESTSUITE: 5
},
STEP_BREAK_BETWEEN_TC: {
B.SUBJECT_TESTPLAN: 7,
B.SUBJECT_TESTSUITE: 6,
B.SUBJECT_TESTCASE: 3
},
STEP_BREAK_BEFORE_TC2: {
B.SUBJECT_TESTPLAN: 8,
B.SUBJECT_TESTSUITE: 7
},
STEP_EXEC_TC2: {
B.SUBJECT_TESTPLAN: 9,
B.SUBJECT_TESTSUITE: 8,
B.SUBJECT_TESTCASE: 4
},
STEP_EXEC_TS2: {
B.SUBJECT_TESTPLAN: 10,
B.SUBJECT_TESTSUITE: 9
},
STEP_COLL_TC: {
B.SUBJECT_TESTPLAN: 11,
B.SUBJECT_TESTSUITE: 10,
B.SUBJECT_TESTCASE: 5
},
STEP_COLL_TS: {
B.SUBJECT_TESTPLAN: 12,
B.SUBJECT_TESTSUITE: 11
},
STEP_COMP_TC: {
B.SUBJECT_TESTPLAN: 13,
B.SUBJECT_TESTSUITE: 12,
B.SUBJECT_TESTCASE: 6
},
STEP_COMP_TS: {
B.SUBJECT_TESTPLAN: 14,
B.SUBJECT_TESTSUITE: 13
},
STEP_FIN_TC: {
B.SUBJECT_TESTCASE: 7
},
STEP_FIN_TS: {
B.SUBJECT_TESTSUITE: 14
},
STEP_FIN_TP: {
B.SUBJECT_TESTPLAN: 15
}
}
STEPS_TESTPLAN = [STEP_INIT_TP, STEP_INIT_TS, STEP_INIT_TC,
STEP_EXEC_TS1, STEP_EXEC_TC1, STEP_BREAK_AFTER_TC1, STEP_BREAK_BETWEEN_TC, STEP_BREAK_BEFORE_TC2, STEP_EXEC_TC2, STEP_EXEC_TS2,
STEP_COLL_TC, STEP_COLL_TS,
STEP_COMP_TC, STEP_COMP_TS, STEP_FIN_TP]
STEPS_TESTSUITE = [ STEP_INIT_TS, STEP_INIT_TC,
STEP_EXEC_TS1, STEP_EXEC_TC1, STEP_BREAK_AFTER_TC1, STEP_BREAK_BETWEEN_TC, STEP_BREAK_BEFORE_TC2, STEP_EXEC_TC2, STEP_EXEC_TS2,
STEP_COLL_TC, STEP_COLL_TS,
STEP_COMP_TC, STEP_COMP_TS, STEP_FIN_TS ]
STEPS_TESTCASE = [ STEP_INIT_TC, STEP_EXEC_TC1, STEP_BREAK_BETWEEN_TC, STEP_EXEC_TC2,
STEP_COLL_TC, STEP_COMP_TC, STEP_FIN_TC ]