How to do excception handling ( error handling ) in QTP
Answer Posted / nanda
Generally we do the exception handling by using IF..Then
statement.
for example..
If Browser("XXXX").Window("Text:=XXXXX").Exist Then
Browser("XXXX").Window("Text:=XXXXX").Close
End If
Like this..
If any queries...
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
Explain the new feature of UFT regarding the export of test results?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
what is the hierarchy to use properties in descriptive programming
What are the steps involved in the recovery scenario wizard?
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
What is expert view and keyword view?
Approach for Installation,comaptibility,system testing
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
How to import a test case present in ".xls" file to TD under a Test set?
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
HOw to add the recovery file at runtime to the test file .
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
Have you faced any problems with object repository?
Explain the check points in quicktest professional (qtp)?
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?