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

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

1947


Is it possible to switch between recording modes during a test creation?

793


hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.

1622


I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1903


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1718


Explain the difference between call to action and copy action?

719


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?

1658


How will you test a keyboard?

802


What is the basic concept of quicktest professional (qtp)?

790


How can get count of list box?

846


terminal services client

1998


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

1270


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1784


Explain step generator in qtp?

855


What is the script for database check point, bitmapchek point, regular expression ?

1799