Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attaching QTP result to Quality Center
#4
Not Solved
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:
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
Reply


Messages In This Thread
RE: Attaching QTP result to Quality Center - by Praj - 02-06-2009, 12:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help in capturing the Calculator result using QTP 11 vishruth143 0 2,018 01-20-2015, 11:08 AM
Last Post: vishruth143
  Attaching config file in driver script?? ruchi 3 3,996 01-24-2014, 12:32 PM
Last Post: basanth27
  How to run VBScript file from quality center sree.85 0 2,416 10-08-2012, 04:52 PM
Last Post: sree.85
  Demo version of Qaulity Center Shri 1 3,258 09-10-2012, 12:13 PM
Last Post: SIBICA
  Import Excel data from Quality Center into QTP Script smilefouru 6 22,131 04-03-2012, 09:42 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 2 Guest(s)