Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4464,24 +4464,22 @@ def download_attachment_from_global(data_set):
"""
usage: This action allows you to download attachments from a testcase id
dataset :
attachment name | input parameter | name
path to save | optional parameter | path
download attachment from global | common action | result
download attachment from global | common action | attachment name

return : return True/False
note: attachment name will be the name of that attachment ,result will be the variable name to store
"""
sModuleInfo = inspect.currentframe().f_code.co_name + " : " + MODULE_NAME
try:
var_name = None
var_path = None
var_path = sr.Get_Shared_Variables("zeuz_download_folder")
for left, mid, right in data_set:
left = left.strip().lower()
if "attachment name" == left:
var_name = right.strip()
if "path to save" == left:
var_path = CommonUtil.path_parser(right)

if "download attachment from global"==left:
var_name=right.strip()
if var_path is None:
CommonUtil.ExecLog(sModuleInfo, "Please insert attachment path to download ", 3)
return "zeuz_failed"
Expand Down