Function to upload attachment in Test plan folder in ALM
Uploading the document to
ALM from local machine
strFileName =LocalmachinePath & strFileName
FileDescription = "Test"
Set TDConnection = QCUtil.TDConnection
Set treeManager = TDConnection.TreeManager
Set node = treeManager.nodebypath(ALMFolderpath)
set att = node.attachments
Set atta = att.AddItem(Null)
atta.FileName = strFileName
atta.Type = 1
atta.Post()
I will be sharing more functions for uploading attachements to Test Set and Test Run.
Comments
Post a Comment