Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How qtp recognizes the object?

1102


How does qtp identify gui object?

949


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1838


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

2024


How the smart identification is used in real time?Please explain with an example

1982


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

1203


What the differences are and best practical application of Object Repository?

1057


Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

1949


How many types of recording modes in qtp? Which will be used when?

923


Did the scripts need lot of maintenance? If yes, why?

3742


Where you get the run time data table?

972


How to find operating system information using the qtp script?

1012


what kind of frame work you used in your last project?

2264


What are the views available in quicktest professional?

972


How does qtp identify objects in the application?

1071