| || |
Help on how to copy an XML file to QC
Here is the function that i used to paste a log file into a specific folder in QC:
Public Function AttachFileToQCFolder(strQCFolderName,strLocalFile)
Set strQualityCenter = QCUtil.TDconnection
Set strTreeManager = strQualityCenter.TreeManager
Set strRootFolder = strTreeManager.TreeRoot("Subject")
Set strChildNode = strRootFolder.FindChildren(strQCFolderName)
Set strFoldAttachments = strChildNode.Item(1).Attachments
Set strFoldAttachment = strFoldAttachments.AddItem(Null)
strFoldAttachment.Type = 1
For some reason i get a General Error when i reach the "strFoldAttachment.Post"
I just don't have any idea on what's the reason of getting the error. Please help.
Thanks a lot...
Re: Help on how to copy an XML file to QC
suggest to check the file path