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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1518


I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2242


When ‘option explicit’ keyword is used in qtp?

739


How to suppress warnings from the test results page?

595


explain abt dyanamic changing object with example?

1893






How to associate function library at a run time?

695


What is QTP scenario.

1718


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1465


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

550


What do you mean by checkpoints in qtp?

550


What are the types of environment variables in qtp?

539


How to open a new test using quicktest professional (qtp)?

521


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1713


Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.

1435


What is data driver in qtp? Where we use it?

557