51Testing软件测试论坛

标题: QC bug转移附件为0kb,什么原因呢? [打印本页]

作者: tofy    时间: 2015-1-13 13:11
标题: QC bug转移附件为0kb,什么原因呢?
各位大侠,请教一个问题:
我现在想通过QC脚本的方式实现一个项目的BUG转移到另一个项目的BUG库里,字段都成功转移了,但是原BUG附件转移过去是0KB,是什么原因呢?转移附件的部分脚本如下:
if Bug1.HasAttachment=true then
           For Each Bug1_attach In Bug1.Attachments.NewList("")
               set att=item2.Attachments.AddItem(null)
               att.FileName = Bug1_attach.FileName
               att.Type = Bug1_attach.Type
               att.post
               att.Refresh
           Next
  end if
作者: tofy    时间: 2015-1-15 08:01
顶下。
作者: tofy    时间: 2015-1-19 15:29
大家都没遇到过这样的问题吗?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2