Using ReleaseConnection with defect logging
I have used a function that connects to QC using the following test object
QCConnection = CreateObject("TDApiOle80.TDConnection")
This connection is being used to log a defect in QC with an attachment. However, when I use ReleaseConnection method immediately after posting a bug that has an bitmap attachment, the bug gets posted with the bitmap attachment of size of 0 KB and cannot be downloaded. The post functions properly when release connection is not used at all.
The idea to release connection was required because the connections kept piling up in QC that actually locked the defect and prevented me from deleting defects. I have also tried using the Disconnect method but the execution of this step causes QTP to hang and its process has to be killed manually.
Please let me know what can be used in this case to release the connection.
Re: Using ReleaseConnection with defect logging