| || |
Code to log defect in Quality Center through vbscript/QTP
I am looking for code to log defect in Quality Center through VBScript from QTP.
I had code which use to work for QC 9.5 but that code is not working for QC 11 using bugfactory as below.
Set tdc = CreateObject("TDApiOle80.TDConnection")
tdc.Login qcUser, qcPassword
tdc.Connect qcDomain, qcProject
Set BugFactory = tdc.BugFactory
Set tdconnection = objectHelper.CreateObject("TDApiOle80.TDConnection .1")
Set factory = tdconnection.BugFactory
Set Bug1 = factory.AddItem(Null)
Bug1.Field("BG_DESCRIPTION") = "automatic created defect"
Bug1.Status = "New"
Please let me know if anyone know how to post bug in QC11 through code.
What is the error you are getting ?
Try reinstalling QC Connectivity and Excel Addins for Quality Center and re-try your code, hopefully it shall work.
Last edited by talk2pk; 04-08-2013 at 09:38 PM.