首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > vbScript >

qc 二次开发 用 VBScript 上载附件

2012-11-08 
qc 二次开发 用 VBScript 下载附件On Error Resume NextSet tdconnction CreateObject(TDApiOle80.TDCo

qc 二次开发 用 VBScript 下载附件

On Error Resume NextSet tdconnction = CreateObject("TDApiOle80.TDConnection")tdconnction.InitConnectionEx "http://lab11:8888/qcbin"tdconnction.ConnectProjectEx "DEFAULT","QualityCenter_Demo","alex_qc",""Set BugFact = tdconnction.BugFactory'根据ID返回需要的附件Set bugObj = BugFact.Item(21)Set attachFact = bugObj.AttachmentsSet attachList = attachFact.NewList("")Set attachObj = attachList.Item(1)Set AttachmentStorage = attachObj.AttachmentStorage'下载到地址AttachmentStorage.ClientPath="F:\a"AttachmentStorage.Load attachObj.Name,Trueif Err=0 Thenwscript.echo "true"elsewscript.echo "false"End If'wscript.echo "结束"

热点排行