Results 1 to 2 of 2
  1. #1

    Removing an attachment from QC with QTP

    Hello EVeryone,

    I try to use the code below but I am unable to delete the attachment from the current test. Any help will be greatly appreciated. Thanks

    Function RemoveQCAttachements(NameOfTheFile)
    var_count= QCUtil.CurrentTest.Attachments.NewList("").count
    For i= 1 to var_count

    If QCUtil.CurrentTest.Attachments.NewList("").Item(1) .Name =NameOfTheFile Then
    AttachmentID = QCUtil.CurrentTest.Attachments.NewList("").Item(1) .ID
    QCUtil.CurrentTest.Attachments.RemoveItem(Attachme ntID)
    End If

    End Function

  2. #2

    Re: Removing an attachment from QC with QTP

    Put a message box inside the the if and see if you are reaching if condition or not. I guess you won't be



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:34 PM.

Copyright BetaSoft Inc.