|
|
@ -128,9 +128,9 @@ def start_child_process(job, args): |
|
|
|
childArgs[B.PAR_TPTIME] = date_tool.getActdate(date_tool.F_LOG) |
|
|
|
childArgs[B.PAR_TESTPLAN] = args[B.PAR_TESTPLAN] |
|
|
|
childArgs[B.PAR_GRAN] = B.PAR_TESTPLAN |
|
|
|
|
|
|
|
print("process-programm " + args[B.PAR_PROGRAM] + " :: " + str(childArgs)) |
|
|
|
job.m.logInfo("process-programm " + args[B.PAR_PROGRAM] + " :: " + str(childArgs)) |
|
|
|
childJob = basic.program.Job(args[B.PAR_PROGRAM], "ulrichX", childArgs) |
|
|
|
childJob = basic.program.Job(args[B.PAR_PROGRAM], "ulrich", childArgs) |
|
|
|
if hasattr(job.par, "tool"): |
|
|
|
setattr(childJob.par, "tool", getattr(job.par, "tool")) |
|
|
|
childJob.m.logDebug(verifiy, "start_child_process "+childJob.program) |
|
|
@ -280,10 +280,9 @@ def select_variant(job, programDef, gran, args): |
|
|
|
elif gran in [B.PAR_TESTSUITE, J.GRAN_TS]: |
|
|
|
setParameterArgs(job, args, [B.PAR_PROJ]) |
|
|
|
print("select ts spec " + gran) |
|
|
|
out = model.testsuite.select_testsuite(job, args[B.PAR_PROJ], args[B.PAR_TESTSUITE]) |
|
|
|
if "variant" not in out: |
|
|
|
return [""] |
|
|
|
return list(out["variant"].keys()) |
|
|
|
testsuite = model.factory.getTestsuite(job, args[B.PAR_PROJ], name=args[B.PAR_TESTSUITE]) |
|
|
|
if hasattr(testsuite, B.SUBJECT_VARIANTS): |
|
|
|
outVariants = list(getattr(testsuite, B.SUBJECT_VARIANTS).keys()) |
|
|
|
elif gran in [B.PAR_TESTCASE, J.GRAN_TC]: |
|
|
|
setParameterArgs(job, args, [B.PAR_PROJ]) |
|
|
|
print("select tc spec " + gran + " " + str(args)) |
|
|
@ -293,6 +292,8 @@ def select_variant(job, programDef, gran, args): |
|
|
|
# return [""] |
|
|
|
if hasattr(testcase, B.SUBJECT_VARIANTS): |
|
|
|
outVariants = list(getattr(testcase, B.SUBJECT_VARIANTS).keys()) |
|
|
|
elif hasattr(testcase, B.SUBJECT_STEPS): |
|
|
|
outVariants = list(getattr(testcase, B.SUBJECT_STEPS).keys()) |
|
|
|
#return list(testcase[B.SUBJECT_VARIANTS].keys()) |
|
|
|
else: |
|
|
|
raise Exception("for gran "+gran+" variant can not be selected") |
|
|
@ -307,6 +308,7 @@ def select_testplan(job, programDef, args): |
|
|
|
|
|
|
|
def select_testsuite(job, programDef, args): |
|
|
|
outList = [] |
|
|
|
outList = model.factory.getTestsuite(job, args[B.PAR_PROJ]).get_unique_names(job, project=args[B.PAR_PROJ], application=args[B.PAR_APP]) |
|
|
|
return outList |
|
|
|
|
|
|
|
def select_testcase(job, programDef, args): |
|
|
|