1.

How can you handle exceptions in QTP?

Answer»

In QTP, exceptions can be handled by using “recovery scenarios” and “On Error” statements.

To handle the exception in recovery scenario, you have to define three things −

  • Triggered Events

  • Recovery steps

  • Post Recovery Test-Run

To handle the exception by “On Error” statements – In the script, you have to use the “On Error Resume Next” and “On Error Go to 0” statement.



Discussion

No Comment Found