File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed 
Framework/Built_In_Automation/Sequential_Actions Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -4464,24 +4464,22 @@ def download_attachment_from_global(data_set):
44644464    """ 
44654465    usage: This action allows you to download attachments  from a testcase id 
44664466    dataset : 
4467-         attachment name     | input parameter | name 
44684467        path to save        | optional parameter | path 
4469-         download attachment from global | common action | result  
4468+         download attachment from global | common action | attachment name  
44704469
44714470    return : return True/False 
44724471    note:  attachment name will be the name of that attachment ,result will be the variable name to store 
44734472    """ 
44744473    sModuleInfo  =  inspect .currentframe ().f_code .co_name  +  " : "  +  MODULE_NAME 
44754474    try :
44764475        var_name  =  None 
4477-         var_path  =  None 
4476+         var_path  =  sr . Get_Shared_Variables ( "zeuz_download_folder" ) 
44784477        for  left , mid , right  in  data_set :
44794478            left  =  left .strip ().lower ()
4480-             if  "attachment name"  ==  left :
4481-                var_name  =  right .strip ()
44824479            if  "path to save"  ==  left :
44834480               var_path  =  CommonUtil .path_parser (right )
4484- 
4481+             if  "download attachment from global" == left :
4482+                 var_name = right .strip ()
44854483        if  var_path  is  None :
44864484            CommonUtil .ExecLog (sModuleInfo , "Please insert attachment path to download " , 3 )
44874485            return  "zeuz_failed" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments