summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author何冰凝 <[email protected]>2022-05-05 14:59:45 +0800
committer何冰凝 <[email protected]>2022-05-05 14:59:45 +0800
commit03f51ed251d5b92df2ace533901a6ded8327267b (patch)
tree5936b03181d0ff49cc8522f0d6ba24681b770491
parent34fe2f2d092cdff10a42fdd5bb13705e3e7a8f48 (diff)
解决mail协议用例由于sshlibrary库匹配方式原因经常性执行失败的问题
-rw-r--r--keyword/policys/policy.robot4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyword/policys/policy.robot b/keyword/policys/policy.robot
index ec6ac00..9bddc14 100644
--- a/keyword/policys/policy.robot
+++ b/keyword/policys/policy.robot
@@ -817,7 +817,9 @@ EmailSend
${mailMessagePath} Get From Dictionary ${verify} mailMessagePath
${mailAttachPath} Get From Dictionary ${verify} mailAttachPath
- Write curl --connect-timeout 10 -m 10 --url "smtp://${smtpServer}" --mail-from "${mailFrom}" --mail-rcpt "${mailTo}" -H @${scriptsPath}${mailMessagePath} --user "${mailFrom}:${mailPassword}" -F '=(;type=multipart/mixed' -F '=(;type=multipart/mixed' -F "="Bestman";type=text/plain" -F "file=@${scriptsPath}${mailAttachPath};type=`file --mime-type "${scriptsPath}${mailAttachPath}" | sed 's/.*: //'`;encoder=base64" -F '=)'
+ # ${aaa} SSHLibrary.Execute Command curl --connect-timeout 10 -m 10 --url "smtp://${smtpServer}" --mail-from "${mailFrom}" --mail-rcpt "${mailTo}" -H @${scriptsPath}${mailMessagePath} --user "${mailFrom}:${mailPassword}" -F '=(;type=multipart/mixed' -F '=(;type=multipart/mixed' -F "="Bestman";type=text/plain" -F "file=@${scriptsPath}${mailAttachPath};type=`file --mime-type "${scriptsPath}${mailAttachPath}"|sed 's/.*: //'`;encoder=base64" -F '=)'
+ # log ${aaa}
+ ${return} ${write} Run Keyword And Ignore Error SSHLibrary.Write curl --connect-timeout 10 -m 10 --url "smtp://${smtpServer}" --mail-from "${mailFrom}" --mail-rcpt "${mailTo}" -H @${scriptsPath}${mailMessagePath} --user "${mailFrom}:${mailPassword}" -F '=(;type=multipart/mixed' -F '=(;type=multipart/mixed' -F "="Bestman";type=text/plain" -F "file=@${scriptsPath}${mailAttachPath};type=`file --mime-type "${scriptsPath}${mailAttachPath}"|sed 's/.*: //'`;encoder=base64" -F '=)'
${return} ${res} Run Keyword And Ignore Error Read delay=15s