02-06-2009, 12:09 AM
Hi,
I am trying to attach test result to Test Lab in Quality center but its giving me error of "Root" node not found.
Code for same:
Please let me know!!
Thanks in advance.
Praj
I am trying to attach test result to Test Lab in Quality center but its giving me error of "Root" node not found.
Code for same:
Code:
strFilePath="C:\Test.xls"
Folder_Name="Root\Project123\Test Result"
Set TDConnection = QCUtil.TDConnection
Set treeManager = TDConnection.TreeManager
Set root = treeManager.TreeRoot("Root") ' saving in test lab module
Set folder1 = root.FindChildNode("Test Result") ' saving in test lab module
Set fact = folder1.Attachments
Set atta=fact.AddItem(Null)
atta.FileName = strFilePath
atta.Type = 1
atta.Post()
Please let me know!!
Thanks in advance.
Praj