1. how can you handle exceptions without using recovery
scenario?

Answers were Sorted based on User's Feedback



1. how can you handle exceptions without using recovery scenario?..

Answer / narender reddy alala

by using "on error resume next" we can handle exceptions

Is This Answer Correct ?    8 Yes 0 No

1. how can you handle exceptions without using recovery scenario?..

Answer / baba

Hello buddy,

If the Error is predictable... You know that Test Script
has an error, while running the script the error will come.

Here, you can use "On Error Resume Next"

On Error Resume Next
Err.Raise 6 ' Raise an overflow error.
MsgBox "Error # " & CStr(Err.Number) & " " & Err.Description
Err.Clear ' Clear the error.

here
e.g.
On Error Resume Next
msbox "Hello"
Msgbox err.number&err.description

try this it will give one "Number and Description" output
you submit in 1st code given by me instead of 6.

If Any Unpredictable Errors/Events occur You cannot guess
where and when they will come. then you should go for the
Recovery Scenario Manager.

Thanks & Regards
Baba.D contact kingring.d@gmail.com

Is This Answer Correct ?    8 Yes 0 No

1. how can you handle exceptions without using recovery scenario?..

Answer / pankaj sharma

We can also use cases if the points where error is suppose
to throw .
like
if Err.Number = 12 then
systemutil.closeprocessbyname "processname"
call function()
end if

To discuss more about this or some other topic please visit
http://quality2deliver.blogspot.com/

Is This Answer Correct ?    0 Yes 0 No

1. how can you handle exceptions without using recovery scenario?..

Answer / dinesh

using the optionalstep method we can handle the error.

Is This Answer Correct ?    0 Yes 0 No

1. how can you handle exceptions without using recovery scenario?..

Answer / vengi

by using on resume next

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More QTP Interview Questions

How to handle recovery scenario for a application crash.write script for this.

2 Answers   Polaris, TCS,


How can you pass value one action to another action?

0 Answers  


what is object repository size?

22 Answers   ITC Infotech,


How can you handle exceptions in qtp?

0 Answers  


How many types of recording modes in the qtp?

0 Answers  


What is the use of environment variables?

1 Answers  


How can you exit from an action?

0 Answers  


when i perametarization of the test through outputcheckpoint,i have seen run time error i.e outputcheckpoint mismatch .Plz tell anybody to me(qtp).How to clear that?

1 Answers  


I am not able to record yahoomail browser.its giving error like "The browser Application can't be launched .Posssibly the URL is wrong" So anyone can tell me what setting i have to do in qtp??

1 Answers  


Key word driven framework

0 Answers   Wipro,


.qfl extension for which file? where vl use it

3 Answers   iFlex,


hi i have one issue while selecting weblist i want show one particalur item in weblist .ex one weblist they are monday to sunday i want show the reporter like thurday in particular weblist can you help me about this thanks balaji

5 Answers  


Categories