How to handle run time errors?

Answer Posted / rambabu-hyd&banga

using exception handling we can handle the run time errors
they are three types in winrunner
1)tsl
2)object
3)pop-up

In qtp they are 4 types
1)pop-up window
2)object state
3)Test run error
4)application crash

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1539


How many add-ins comes by default with qtp?

547


How may types of defects identify application or your currently working application?pls give me answer..

1517


How to use checkpoints in qtp ?

588


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1463






What are the different types of recording modes?

540


What are the different kinds of test steps?

577


What is throw object?

1747


what is description object?

1602


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

1721


What is the use of ordinal identifier in qtp?

608


What is QTP and the use of QTP in TD?

602


In qtp, how you can use xpath to identify objects?

618


Name the properties you would use for identifying a browser and page when using descriptive programming?

527


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",

1355