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 the Dynamic Scenario in QTP? And also anybody give the example for this?

3 Answers  


what are the metrics in general we use in testing.

6 Answers   TCS,


Local Obj Repository and SOR are editable know, y we have to edit those.. i mean in which situation we need to edit those and how to do..? pls help me..

2 Answers  


write script for "dropdown button having how many words? for ex.SELECT CITY is dropdown name.. find out how many cities in that?

1 Answers  


How many regression test suits in your appliction?

2 Answers   CTS,


suppose u hav a dialog or window which contains 10 buttons with same name & value. now how to check each button? i.e. how qtp indetifies these objects separately?

2 Answers  


How qtp recognizes the object?

0 Answers  


How to use regular expression in descriptive programming?

0 Answers  


What is meant by Environmental variables?2 types r there know…can u pls explain clearly?

1 Answers  


How to enable the text check point in qtp? By default it is disables

1 Answers   Sify, ssinformatics,


How will you send values to a cell in a webtable using QTP?

2 Answers  


what r the drawbacks and limitations of QTP?

2 Answers   NIIT,


Categories