How can we retrieve the Bug Ids which are open&Reopen in
status through QTP scrit?Please find the script which i
tried...

Dim objBugFactory, objBug
Dim BugId

Set TDConnection = QCUtil.TDConnection
Set objBug = TDConnection.BugFactory

If QCUtil.IsConnected then
Reporter.ReportEvent 0, "Connected", "Connected
to server: " + QCUtil.TDConnection.ServerName + chr (13)
+"Project: " + QCUtil.TDConnection.ProjectName + chr (13)
+ "Domain: " + QCUtil.TDConnection.DomainName
Reporter.ReportEvent 0, "Current time on server
is","==>" & TDConnection.ServerTime
Else
Reporter.ReportEvent 1, "Not connected", "Not
connected to Quality Center"
End If

If mybug.Status="Open" Then
BugId=mybug.DefectId
MsgBox BugId
End If

'OR**********************************---------------------
-----**********************************

If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then
BugId=Bug_Fields("BG_BUG_ID").Value
MsgBox BugId
End If


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More QTP Interview Questions

what is parameterisation?

3 Answers  


what type of test cases tou will automate?

4 Answers   Google,


What are the types of data tables in qtp?

0 Answers  


CAN SOME ONE TELL ME ABOUT QTP FRAMEWORK? I AM SUPPOSED TO GIVE THE QTP FRAMEWORK THIS WEEK SO PLEASE HELP

2 Answers  


Explain how you can find length of array in qtp?

0 Answers  






I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance

6 Answers   Cimcon,


An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this???

4 Answers   HCL,


How does qtp identify gui object?

0 Answers  


what is object repository size?

22 Answers   ITC Infotech,


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

0 Answers  


What is difference between Quality centre and Test Director?

1 Answers   Nokia,


How can we use the "CreateObject("Wscript.Shell")" in QTP and what is the definition and purpose of it?

2 Answers  


Categories