Skip to content

Commit 7a47189

Browse files
Merge pull request #171 from AutomationSolutionz/global-attachment-download
Global attachment download
2 parents ab7e166 + 2227fc4 commit 7a47189

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Framework/Built_In_Automation/Sequential_Actions/common_functions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)