Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attaching QTP result to Quality Center
#6
Not Solved
(01-15-2008, 12:35 AM)vikas_dhir Wrote: Ankur,

Thanks for your response. I tried the above code but it did not work. I get the error "Node not found" everytime. Below is the code I have used:

Code:
LocalFilePath = "C:\TestResult.doc"
Folder_Name = "Subject\Automation\Automation"     

Set TDConnection = QCUtil.TDConnection
Set treeManager = TDConnection.TreeManager
Set folder = treeManager.nodebypath(Folder_Name)

Set att = folder.attachments
Set atta = att.AddItem(Null)

atta.FileName = LocalFilePath
atta.Type = 1
atta.Post()

Here's what I want to do. I want to attach the 'C:\TestResult.doc' to the test case placed in the 'Test Lab' in Quality Center under the path "Root\Automation\Automation". The name of the test case is "Test Case 01"

Now i tried various permutations and combinations for nodebypath----
"Subject\Automation\Automation"
"Root\Automation\Automation"
"Subject\Automation\Automation\Test Case 01"
"Root\Automation\Automation\Test Case 01"
"[Quality Center]Subject\Automation\Automation\Test Case 01"
"[Quality Center]Root\Automation\Automation\Test Case 01"

I tried to debug this issue using value from nodebyID (in a messagebox) instead of nodebypath and I found that 'Set folder = treeManager.nodebyID(1)' returns a field from Defects Tab of QC.
 Hi Vikas,

Did this issue get resolved. I am getting an error "node not found". Could you please help me at this.

Regards,
Swetha
Reply


Messages In This Thread
RE: Attaching QTP result to Quality Center - by Swetha_Bayya - 01-06-2017, 11:55 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: 1 Guest(s)