Skip to content

Commit 81c998a

Browse files
Merge pull request #358 from AutomationSolutionz/step_exit_message
Step exit message
2 parents 29ace0d + d096e7e commit 81c998a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Framework/Built_In_Automation/Sequential_Actions/common_functions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,19 +545,26 @@ def step_exit(data_set):
545545

546546
try:
547547
action_value = ""
548+
msg = ""
548549
for row in data_set:
549550
if row[0] == "step exit" and row[1] == "action":
550551
action_value = row[2]
552+
elif row[0].strip().lower() == "message":
553+
msg = row[2]
551554
except:
552555
return CommonUtil.Exception_Handler(sys.exc_info())
553556

554557
if (
555558
action_value in failed_tag_list
556559
): # Convert user specified pass/fail into standard result
560+
if msg:
561+
CommonUtil.ExecLog(sModuleInfo, f'{msg}', 3)
557562
return "zeuz_failed"
558563
elif action_value in skipped_tag_list:
559564
return "skipped"
560565
elif action_value in passed_tag_list:
566+
if msg:
567+
CommonUtil.ExecLog(sModuleInfo, f'{msg}', 1)
561568
return "passed"
562569
else:
563570
CommonUtil.ExecLog(sModuleInfo, "Step Result action has invalid VALUE", 3)

0 commit comments

Comments
 (0)