@@ -950,9 +950,6 @@ def run_test_case(
950950    browserDriver = None ,
951951):
952952    try :
953-         prev_zeuz_tc_logs  =  shared .Get_Shared_Variables ("zeuz_tc_logs" )
954-         prev_zeuz_tc_logs ['current_test_case_id' ] =  TestCaseID 
955-         shared .Set_Shared_Variables ("zeuz_tc_logs" , prev_zeuz_tc_logs , pretty = False , print_variable = False )
956953        TestCaseStartTime  =  time .time ()
957954        test_case  =  str (TestCaseID ).replace ("#" , "no" )
958955        CommonUtil .current_tc_no  =  test_case 
@@ -972,6 +969,7 @@ def run_test_case(
972969            shared .Set_Shared_Variables ("zeuz_prettify_limit" , 500 )
973970            CommonUtil .prettify_limit  =  500 
974971
972+         shared .Set_Shared_Variables ("zeuz_tc_logs" , {"errors" : []}, pretty = False , print_variable = False )
975973        shared .Set_Shared_Variables ("zeuz_attachments_dir" , (Path (temp_ini_file ).parent / "attachments" ).__str__ ())
976974        if  not  shared .Test_Shared_Variables ("element_wait" ):
977975            shared .Set_Shared_Variables ("element_wait" , 10 )
@@ -1805,8 +1803,6 @@ def download_or_copy(attachment):
18051803# main function 
18061804def  main (device_dict , all_run_id_info ):
18071805    try :
1808-         # Set TC logs 
1809-         shared .Set_Shared_Variables ("zeuz_tc_logs" , {"errors" : []}, print_variable = False , pretty = False )
18101806        # get module info 
18111807        sModuleInfo  =  inspect .currentframe ().f_code .co_name  +  " : "  +  MODULE_NAME 
18121808
@@ -1949,7 +1945,6 @@ def main(device_dict, all_run_id_info):
19491945
19501946            shared .Set_Shared_Variables ("run_id" , run_id )
19511947            shared .Set_Shared_Variables ("node_id" , CommonUtil .MachineInfo ().getLocalUser ())
1952-             shared .Set_Shared_Variables ("zeuz_tc_logs" , {"errors" : []}, print_variable = False , pretty = False )
19531948
19541949            send_log_file_only_for_fail  =  ConfigModule .get_config_value ("RunDefinition" , "upload_log_file_only_for_fail" )
19551950            send_log_file_only_for_fail  =  False  if  send_log_file_only_for_fail .lower () ==  "false"  else  True 
0 commit comments