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

Deal All, Recently i face one interview question in one company. str="test12@#3456" In This i want to print like special character and numeric ,word in one script please tell me how to write the code for this Thanks Balaji

1 Answers  


What is different command used in command Prompt while using QTP?

0 Answers  


I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an index or location of that object.But when I viewing through spy, There was no index property of that object.What to do for getting index value.How can I get index? please any one let me know.

5 Answers  


How we can test a Frame in a web page?

1 Answers   eMids,


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  






How to test the mandatory fields in QTP?

1 Answers   SoftSolve, TE,


Syntax for how to call one script from another and Syntax to call one "Action" in another?

1 Answers   Crea,


To which environments does a QTP support?

1 Answers   Crea,


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

0 Answers  


write a qtp script to see time in windows command prompt? its urgent....

9 Answers   BSL,


unique properties of button,edit box, radio button,check box?

1 Answers   IBM,


what is the Vbscript to connect Database

5 Answers   IBM,


Categories