| || |
Raising defect in QC
Can somebody give the guidelines or code to the following requirement.
a. Using QTP how to raise defects for the failed scenarios
in QC automatically
b. How to enter the mandatory fields of a defect
through QTP for a failed scenario?
Re: Raising defect in QC
Try out the same thing with extended fields:
Set QCConnection = QCUtil.QCConnection
'Get the IBugFactory
Set BugFactory = QCConnection.BugFactory
'Add a new, empty defect
Set Bug = BugFactory.AddItem (Nothing)
'Enter values for required fields
Bug.Status = "New"
Bug.Summary = "New defect"
Bug.DetectedBy = "admin" ' user that must exist in the database's user list
'Post the bug to the database ( commit )