how can we handle exceptional handling in qtp

Answers were Sorted based on User's Feedback



how can we handle exceptional handling in qtp..

Answer / siva krishna

We can handle exceptional handling in qtp by using
Recoery Scenarios and the next one is by using "ON ERROR
RESUME NEXT".I think both these are the methods we actually
have in QTP with exceptional handling.Let me know if any
mistakes are there.

Is This Answer Correct ?    4 Yes 0 No

how can we handle exceptional handling in qtp..

Answer / softwaretester4u

Hi we can handle exception handing through recovery
scenarios ,after creation of recovery scenarios ,call the
settings ,resource tab

Is This Answer Correct ?    2 Yes 0 No

how can we handle exceptional handling in qtp..

Answer / mogal

We can handle exceptions siuing below ways
1.On Error Resume Next - Skip the Error and continue the next stpes of execution
2. Recovery Scenarios
Select Resources > Recovery Scenario Manager. Create new Scenario > Specify the Trigger Event > Specify the Recovery Operation > Specify Post-recovery test run options
3. Conditional Statements ( If, ElseIf,Else,Do,While,...)
4.Synchronization Methods (Wait,WaitProperty,Sync,Exist)

Is This Answer Correct ?    1 Yes 0 No

how can we handle exceptional handling in qtp..

Answer / raveendran

You can handle expeption in your script using If..Then
statement, or you can use .Exist statement, If any know
error message which you fell it occur, you can use
this .exist stmt to close that window.

You can use recovery scenario (.qrs file) record your
recover scenario and makesure that you are loaded that .qrs
filr into your QTP window whenever you run the test, if any
problem occur during run, it use that recovery scenario to
recover from failure.

Is This Answer Correct ?    0 Yes 0 No

how can we handle exceptional handling in qtp..

Answer / 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

how can we handle exceptional handling in qtp..

Answer / saket

We can handle exceptional handling using the VB scripts to
some extent.All procedure which are prone to exception can
be kept in a if-then loop and depending upon the result of
the operation,either proper error message can be displayed
or next procedure can be executed.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

What are some test assets and related extensions of qtp?

0 Answers  


what are the functions availabla in QTP? what are the data types in QTP?

2 Answers   Spry Technologies,


Can we directly automate testscripts accrdoing to requirements? WHY ?

1 Answers  


Why we are going for descriptive programming ? I answered as 'If objects are not present in OR we will go for descriptive Programming'? Is this correct ?

3 Answers   Polaris,


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

0 Answers  






Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

0 Answers  


what time u r using data driven test in ur app"

6 Answers   Accenture, IBM,


How can you capture(Read) the values from a Table?

1 Answers  


what is the difference between testing and debugging?

2 Answers  


can we install qtp in windows vista

2 Answers  


We have an application which generates links( more than thousand) based on the time stamp dynmically.Each link will download an xls file. we are supposed to click a particular link (which link to click will be obtained thru some buisiness logic).Now the issue is QTP is not recogniging the link(say Var1) though its properties showed mandatory fields text=xyz and html tag=A.I used following code to do this. Browser("ABC").Page("123").Link("text:=" &Var1,"html tag:=A").click, can any one suggest why this is not recognised by QTP though syntax is correct?(Is there any sync issue to be considered?Because on clicking the link it will take 5 mins to open that file)

3 Answers  


Hello! i am having two comboboxes.Each having 10 items in it.when i select first item in first combobox,it is not similar in the second combobox.for ex in first combo if it is Hyderabad,in second it should be some chenai or some other item .Write a VBSCRIPT for that?

3 Answers   Tech Mahindra,


Categories