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.

50 lines
1.2 KiB

3 years ago
import unittest
import os
import inspect
import shutil
2 years ago
"""
2 years ago
import execute_testcase
2 years ago
import tools.path_tool
3 years ago
from basic.program import Job
from basic.componentHandling import ComponentManager
import basic.step
import init_testcase
import test_executer
import test.constants
import basic.constants as B
import basic.componentHandling
2 years ago
import tools.file_tool
"""
import basic.program
import tools.job_tool as job_tool
import test.constants as T
import test.testtools
3 years ago
2 years ago
HOME_PATH = T.HOME_PATH
PYTHON_CMD = "python"
2 years ago
#TEST_FUNCTIONS = [ "test_smokeTestcase"]
TEST_FUNCTIONS = ["test_actProgram"]
2 years ago
PROGRAM_NAME = "unit_tester"
3 years ago
class MyTestCase(unittest.TestCase):
mymsg = "--------------------------------------------------------------"
2 years ago
def test_actProgram(self):
global mymsg
actfunction = str(inspect.currentframe().f_code.co_name)
cnttest = 0
if actfunction not in TEST_FUNCTIONS:
return
2 years ago
job = test.testtools.getTestJob()
print("test_actProgram ++++++++++++++++++")
print("job "+str(job.__dict__))
args = job_tool.read_child_args(job)
print("args "+str(args))
job_tool.start_child_process(job, args)
3 years ago
if __name__ == '__main__':
unittest.main()