how can we handle exceptional handling in qtp

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

774


What is a Patch in QTP?

796


Where we use data driver in qtp?

791


What is QTP scenario.

1920


Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance

1634


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1559


What are main panes available in qtp test browser?

723


desribe a situation where u faced a stressful situation and how did u cope with it

1636


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2998


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1880


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

3176


hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

1747


What is the short cut keys for the following?

834


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.

1630


what is the diff b/w assistive and mandatary rules of object repository in QTP???

1889