How to instruct QTP to display errors and ther description in the test results instead of halting execution by throwing error in the mid of execution due to an error(for example Object not found)?
RE: How to instruct QTP to display errors and ther des...
Use Exception Handling technique of QTP: can be achieved by any one of the following two methods:1. Using Recovery Scenario Manager2. scripting by using :if-else-then OR Select Case
RE: How to instruct QTP to display errors and ther des...
I have the same problem. However My issue deals with waiting for an object. I'm not a programmer. How can I manipulate the Wait function to wait without me having to specify the seconds. For instance in Rational Functional Tester I used to use wait.untilExistence.
RE: How to instruct QTP to display errors and ther des...
How to instruct QTP to display errors and ther description in the test results instead of halting execution by throwing error in the mid of execution due to an error(for example Object not found)?
For all of u who've added their comments to this questions i request u read the question once more very carefully.
It clearly demands that the script should not halt in between the execution if any error occurs. In this case the only solution is to use Optional Step statement. Using this statement QTP will reflect a Warning message in the Test Results Page and just continues running the next line of the script. Please refer QTP help for more information on this.
RE: How to instruct QTP to display errors and ther des...
There is a option Test->settings->goto RUN tab select proceed to next step in when error occurs during run session. Then u will escape fromthe error without doing any programming.