HP ALM - 无法通过python将附件发布到缺陷

时间:2018-05-04 07:37:22

标签: python-2.7 pywin32 hp-alm

我收到错误you don't have the required permissions to execute this action, 当我尝试将文件附加到HP-ALM中的缺陷时。

bug.post()

attachfact=bug.Attachments;

attachObj = attachfact.AddItem(None)
attachObj.Description = "Failed Records"
attachObj.Filename = "LOGS\\"+test_case.Name+"_LOG.xlsx"
attachObj.Type=1

ExScoraqe - attachObj.AttachmentStorage
ExScoraqe.ClientPath - attachObj.Filename
ExStoraqe.Save(test_case.Name+"_LOG.xlsx",True)
attachObj.Post()

defect_ids = defect_ids + ” "+str(bug.Field("BG_BUG_ID"))
print "Defect ID : "+defect_ids

错误 enter image description here

0 个答案:

没有答案