Micro Focus QTP (UFT) Forums
code to refresh QC - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: code to refresh QC (/Thread-code-to-refresh-QC)



code to refresh QC - SRI2703 - 10-03-2011

Hi all,

I am trying to fetch the status of a defect from QC using the below code

Code:
msgbox qcutil.QCConnection.BugFactory.Item(1).Status

But instead of fetching the current status, it fetches a status which is old.
is there any code which will refresh QC and give the exact status.

Thanks.


RE: code to refresh QC - SRI2703 - 10-04-2011

The below piece of code actually refreshed and gave the exact status
qcutil.QCConnection.BugFactory.Item(1).Refresh
msgbox qcutil.QCConnection.BugFactory.Item(1).Status

Thanks