07-24-2014, 01:36 PM
I want a QTP script to add defect in ALM. I have found the below script
But there are many other mandatory fields in the new version(11.52).
When i tried to give the other fields(sub project ID, Application Name..etc,.) using thier names, iam getting an error.
Please give the key words which i have to use for other fields.
Code:
Set TDConnection = CreateObject(”TDApiOle.TDConnection”)
TDConnection.InitConnection “http://yovav/tdbin” ‘ DB URL
TDConnection.ConnectProject “TD76″,”bella”,”pino” ‘ Valid login information
If TDConnection.Connected Then
MsgBox(”Connected to ” + chr (13) + “Server ” + TDConnection.ServerName _+ chr (13) +”Project ” + TDConnection.ProjectName )
Else
MsgBox(”Not Connected”)
End If
‘Get the IBugFactory
Set BugFactory = TDConnection.BugFactory
‘Add a new empty bug
Set Bug = BugFactory.AddItem (Nothing)
‘fill the bug with relevant parametersBug.Status = “New”
Bug.Summary = “Connecting to TD”
Bug.Priority = “4-Very High” ‘ depends on the DB
Bug.AssignedTo = “admin” ‘ user that must exist in the DB’s users list
Bug.DetectedBy = “admin” ‘ user that must exist in the DB’s users list
‘Post the bug to DB ( commit )
Bug.Post
But there are many other mandatory fields in the new version(11.52).
When i tried to give the other fields(sub project ID, Application Name..etc,.) using thier names, iam getting an error.
Please give the key words which i have to use for other fields.