how can we handle exceptional handling in qtp
Answer Posted / denis parker
Scripting related exceptions can be handled in two ways:
1. On Error Resume Next - To Suppress error and proceed the script execution
2. On Error GoTo 0 - To express (or prompt) the error and proceed or stop the script execution based on user selections in the error prompting message box.
Generic Application (outside the scripting)related exceptions can be handled in more ways (but listed here 3 ways):
1. Recovery Scenario
2. Conditional Statements
3. Using "Exist" method
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how will you check how many members visited the website www.infosys.com?
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
can u explain relative path architecture framework in qtp?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
What is a checkpoint? How many check points are there in qtp?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
How to find a window is minimized or not
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
How we can import data from database?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
What are the different types of action?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
Diff b/w Health care domain and Banking Domain?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
Differentiate the type of test cases which can be automated and which cannot be automated?