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

Popular posts from this blog

UFT - Resolving scrolling issue if object is not visible

how to access the excel file as database in UFT?

What is the difference between Call to copy of Action and Call to existing action in QTP/UFT?