|
@@ -225,12 +225,12 @@ class TestRun:
|
|
|
logger.info(f"TC is already in status Error - not processing steps {counterName}: {key}, {value}"
|
|
|
f"and everything behind this step")
|
|
|
return
|
|
|
- if kwargs[GC.KWARGS_DATA][GC.TESTCASESTATUS_STOP]:
|
|
|
+ if kwargs[GC.KWARGS_DATA].get(GC.TESTCASESTATUS_STOP):
|
|
|
logger.info(f"TC wanted to stop. Not processing steps {counterName}: {key}, {value}"
|
|
|
f"and everything behind this step. TC-Status is "
|
|
|
f"{kwargs[GC.KWARGS_DATA][GC.TESTCASESTATUS]}")
|
|
|
return
|
|
|
- if kwargs[GC.KWARGS_DATA][GC.TESTCASESTATUS_STOPERROR]:
|
|
|
+ if kwargs[GC.KWARGS_DATA].get(GC.TESTCASESTATUS_STOPERROR):
|
|
|
kwargs[GC.KWARGS_DATA][GC.TESTCASESTATUS] = GC.TESTCASESTATUS_ERROR
|
|
|
if not kwargs[GC.KWARGS_DATA].get(GC.TESTCASEERRORLOG):
|
|
|
kwargs[GC.KWARGS_DATA][GC.TESTCASEERRORLOG] = "Aborted by command 'TCStopTestCaseError'"
|
|
@@ -308,6 +308,9 @@ class TestRun:
|
|
|
# This could be the "old" way of the globals-file (with {"HEADLESS":"True"})
|
|
|
self.globalSettings[key] = value
|
|
|
|
|
|
+ if self.globalSettings.get("TC.LogLevel"):
|
|
|
+ utils.setLogLevel(self.globalSettings.get("TC.LogLevel"))
|
|
|
+
|
|
|
def _loadJSONTestRunDefinitions(self):
|
|
|
if not self.testRunFileName and not self.testRunDict: # -- API support: testRunDict --
|
|
|
return
|