Skip to content

Commit b1d7ac8

Browse files
[Fix] step_enable fix
1 parent 714bb9a commit b1d7ac8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Framework/MainDriverApi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def run_all_test_steps_in_a_test_case(
600600
sTestStepStartTime = datetime.fromtimestamp(TestStepStartTime, tz=pytz.UTC).strftime("%Y-%m-%d %H:%M:%S.%f")
601601
WinMemBegin = CommonUtil.PhysicalAvailableMemory() # get available memory
602602

603-
if StepSeq in CommonUtil.disabled_step:
603+
if StepSeq in CommonUtil.disabled_step or not all_step_info[StepSeq - 1]['step_enable']:
604604
CommonUtil.ExecLog(sModuleInfo, "STEP-%s is disabled" % StepSeq, 2)
605605
sStepResult = "skipped"
606606
else:

Framework/deploy_handler/adapter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def read_steps(steps_pb) -> List[Dict]:
5050
"automatablity": step["stepInfo"]["stepType"],
5151
"always_run": step["stepInfo"]["alwaysRun"],
5252
"run_on_fail": step["stepInfo"]["runOnFail"],
53+
"step_enable": step["stepInfo"]["stepEnable"],
5354
"step_function": "Sequential Actions",
5455
"step_driver": step["stepInfo"]["driver"],
5556
"type": step["type"],

0 commit comments

Comments
 (0)