IF there are seven browsers with same name open. I want to
close one particular browser thru QTP. how can i do this?
Answers were Sorted based on User's Feedback
sorry venkatesh,
i am agrre with u. But one small correction is the creation
time is start with 0.
if u want close first browser u can give no 0,
if u want close 2nd browser u can give no 1 ,
Ex: for closing seventh browser,
browser("CreationTime:=6").close
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / deven
while browser ("CREATIONTIME:=7").exist(3) then
browser("creationtime:=7").open
wend
| Is This Answer Correct ? | 0 Yes | 3 No |
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
How will you test a keyboard?
How can the functions inside DLL be called from QTP? i mean How can i use those functions(Inside DLL) in QTP
Friends please let me know how id following possible in QTP: Can I apply conditional loop on a bitmap/image or any other checkpoint. Like if checkpoint passes then if or Else
BEst INstitute for QTP & SELENIUM
How to create an instance in QTP?
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?
How can we translate the steps between the Keyword and Expert Views?
How do we run a test from the 3rd row of the datatable in QTP? Leaving the first two rows we need to test AUT from 3rd row to n'th row.
how to evalute defects in QTP script?
LINUX environment supports QTP or not? LINUX environment supports QC or not?
how to get the object property