Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding atachment to QC (ALM) - overwrite
#1
Not Solved
Hi All,

during the test in QTP (launched from ALM) I am uploading generated excel file to the test run attachment using this function:

Code:
Function UpLoadAttachmentToQC(FilePath)
   Set ObjCurrentRun = QCUtil.CurrentRun.Attachments
   Set ObjAttch = ObjCurrentRun.AddItem(Null)
   ObjAttch.FileName = FilePath
   ObjAttch.Type = 1
   ObjAttch.Post
   ObjAttch.Refresh
End Function

Function is working great.

Question is how to update the function that it will overwrite the attachment when the name of the file is the same as the file allready attached?

(Currently i am checking the attachments and if there exist one with the same name i am deleting it before attaching a new one with the same name, but the solution is not a pretty one...)

What i am looking for is some kind of parameter of the method "Post" that will tell the function to overwrite existing attachemnt...
Reply


Messages In This Thread
adding atachment to QC (ALM) - overwrite - by psova - 09-10-2013, 07:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to execute Remote Agent witout ALM? CharlieMadrid 0 1,196 05-12-2020, 01:26 PM
Last Post: CharlieMadrid
  ALM execution status Update patilnagarjuna92 1 3,072 03-18-2019, 08:09 PM
Last Post: Gurusamy
  VB Script access denied error when executing alm scripts in planned host Kumar Reshma 0 1,517 05-28-2018, 04:04 PM
Last Post: Kumar Reshma
  ALM OTA Queries hrishikesh 1 1,622 05-24-2018, 09:53 PM
Last Post: Ankur
  UFT 12.02 encrypted password for ALM connection issue psova 0 2,590 07-29-2015, 02:59 PM
Last Post: psova

Forum Jump:


Users browsing this thread: 2 Guest(s)