Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何以编程方式确定 HPQC(现为 HP ALM)中的缺陷是否有附件?
if(bug.HasAttachment){ //do stuff }
似乎没有工作...
这是确定错误对象是否具有附件并且它在 VBA 中对我有用的正确函数。
我假设您的错误对象已正确初始化?附件是否被错误地添加到错误的链接实体之一?
尝试计算附件数量?
Dim AttachmentList As List Set AttachmentList = MyBug.Attachments.NewList("") If AttachmentList.Count > 0 Then //do stuff
问题中没有太多信息可以继续......