how can we handle exceptional handling in qtp

Answer Posted / denis parker

Scripting related exceptions can be handled in two ways:
1. On Error Resume Next - To Suppress error and proceed the script execution

2. On Error GoTo 0 - To express (or prompt) the error and proceed or stop the script execution based on user selections in the error prompting message box.

Generic Application (outside the scripting)related exceptions can be handled in more ways (but listed here 3 ways):

1. Recovery Scenario
2. Conditional Statements
3. Using "Exist" method

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how Selenium is different from UFT?

830


How to write business scripts using object repository with different scenarios

1540


What is different command used in command Prompt while using QTP?

1922


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1611


Did QTP prove efficient for your project? Yes or No, explain?

6279






please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1703


What is smart identification in QTP?

779


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

1899


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.

1579


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

1784


Explain the new feature of UFT regarding the export of test results?

729


What are the different attribute used with regular expression?

646


what is test scheduleling?

2185


How many add-ins comes by default with quicktest professional (qtp)?

710


Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.

1668