How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality Center using QTP Script?

Showing Answers 1 - 4 of 4 Answers

Uploading text or xml files to quality Center:--------------

Function UpLoadAttachmentToQC(FilePath)
Set ObjCurrentTest = QCUtil.CurrentTest.Attachments
Set ObjAttch = ObjCurrentTest.AddItem(Null)
ObjAttch.FileName = FilePath
ObjAttch.Type = 1
ObjAttch.Post ObjAttch.
End Function

Call UpLoadAttachmentToQC(FilePath) This works fine with Quality center 10.0 Version... but to achive the same task in Quality center 9.0 version ,we need to use ObjAttch.Save(True) Method also. This save method works fine with quality center 9.00 but not with 10.00 version. also i want the difference between save and post methods!!!!


  • Feb 23rd, 2012

Install the Execl Add in to the QC........

!open the excel u want to Export
!Click on the Add In Menu on the Excel
!Excel export option will come........

Provide the Respective path

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account

Send   Reset


Related Answered Questions


Related Open Questions