File tree Expand file tree Collapse file tree
Framework/Built_In_Automation/Shared_Resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,21 +70,23 @@ def __getitem__(self, key_name: str) -> str:
7070
7171 try :
7272 test_id = None
73- step_id = None
7473 if sr .Test_Shared_Variables ("zeuz_current_tc" ):
7574 current_tc = sr .Get_Shared_Variables ("zeuz_current_tc" )
7675 if isinstance (current_tc , dict ) and "testcase_no" in current_tc :
7776 test_id = current_tc ["testcase_no" ]
78- if sr .Test_Shared_Variables ("zeuz_current_step" ):
79- current_step = sr .Get_Shared_Variables ("zeuz_current_step" )
80- if isinstance (current_step , dict ) and "step_id" in current_step :
81- step_id = current_step ["step_id" ]
82-
77+
78+ step_data = sr .Get_Shared_Variables (CommonUtil .dont_prettify_on_server [0 ])
79+ if step_data and isinstance (step_data , list ) and len (step_data ) >= int (CommonUtil .current_action_no ):
80+ current_action = step_data [int (CommonUtil .current_action_no ) - 1 ]
81+ action_details = []
82+ for action in current_action :
83+ if action and len (action ) >= 3 :
84+ action_details .append ({"left" : action [0 ], "middle" : action [1 ], "right" : action [2 ]})
8385 params = {}
8486 if test_id :
8587 params ["test_id" ] = test_id
86- if step_id :
87- params ["step_id " ] = step_id
88+ if action_details :
89+ params ["action_details " ] = json . dumps ({ "values" : action_details , "extra" : "{}" })
8890
8991 CommonUtil .ExecLog (sModuleInfo , f"Fetching secret '{ key_name } ' from server" , 0 )
9092
You can’t perform that action at this time.
0 commit comments