QC OTA and Attachments
I am currently trying to replicate defects from one QC project into another. All is going well except I cannot seem to copy the defect attachment.
My code identifies a particular defect in project 1 then creates a new defect in project 2 and copies (most of) the information. I have hacked about with the code from the OTA reference guide but cannot get it to work....HELP [img]/images/graemlins/smile.gif[/img]
Here is a snippet of the code
'create the connections to the 2 projects
'create the new defect
Set oNewBugSG = oBugFactorySG.AddItem("")
'create the attachment factory from project 1
Set attachFactCH = oBugCH.Attachments
Dim lst As TDAPIOLELib.List
Set lst = attachFactCH.NewList("")
Set attachFactSG = oBugCH.Attachments
Set newAttachmentSG = attachFactSG.AddItem(Null)
Set newAttachmentSG = lst(1)
When watching the objects in debug mode all seems fine but when i come to veiw the defect in QC there are no attachments in the new defect.
Thanks in advance [img]/images/graemlins/smile.gif[/img]
Re: QC OTA and Attachments
Execuse me, how can you copy a defect ?
Do you use fields("***") for all fields? Or can use one method to copy all data?