操作QC的附件

function uploadAttachmentToTestSet()
    set CurrentTSTest = QCUtil.CurrentTestSet        
   
   
        Set AttachmentFactory = CurrentTSTest.Attachments   
        Set Attachment = AttachmentFactory.AddItem(Null)            
        '上传文件并更新   
        Attachment.FileName = "test.html"
        Attachment.Type = 1   
        Attachment.Post   
        Attachment.Refresh   
        set Attachment = nothing
        set AttachmentFactory = nothing                    
        
   
end function

posted on 2011-11-29 13:16  张飞_  阅读(284)  评论(0编辑  收藏  举报

导航