How to instruct Qtp to display errors and other description in the test result instead of haulting execution by throwing error in the mid of the execution due to error? For eg:object not found

Showing Answers 1 - 5 of 5 Answers

tester

  • Oct 30th, 2006
 

use Error Handlers / Recovery Scenarios.

  Was this answer useful?  Yes

Sivakami.K

  • Nov 1st, 2006
 

You have the option in QTP-->Test-->settings--> Go to Run tab.

You can find the selectbox "when error occurs during run session." By default it is set as "popup message box".Thats why your test stops and error message displayed.Set it to "Proceed to next step".Then you can see the errors and other description in the result page.

  Was this answer useful?  Yes

megana

  • Nov 15th, 2006
 

hi

i tried u r example. it is not showing error mess but it not going to next step,i used the option proceed to next step only. could you please clarify this

  Was this answer useful?  Yes

raghu

  • Jan 3rd, 2007
 

You can use the statement "On Error Resume Next" when ever an error occurs qtp ignores the step and moves to next step,

if you want to see the error number and description use the code

if Err.Number<>0 then

msgbox err.number

msgbox err.description

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions