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
#2
Not Solved
Hi,

Did you find any solution for your query?
If so please let me know the same.. It is very urgent

Thanks in advance
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to execute Remote Agent witout ALM? CharlieMadrid 0 1,048 05-12-2020, 01:26 PM
Last Post: CharlieMadrid
  ALM execution status Update patilnagarjuna92 1 2,707 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,259 05-28-2018, 04:04 PM
Last Post: Kumar Reshma
  ALM OTA Queries hrishikesh 1 1,451 05-24-2018, 09:53 PM
Last Post: Ankur
  UFT 12.02 encrypted password for ALM connection issue psova 0 2,337 07-29-2015, 02:59 PM
Last Post: psova

Forum Jump:


Users browsing this thread: 1 Guest(s)