0
votes

I'm using QTP Automation Object Model to run tests:

Set qtpObj = CreateObject("QuickTest.Application") 'Creates an instance of the QTP

BUt in that mode QTP doesn't show any error dialogs (with Stop, skip, debug buttons), like it behaves with On Error Resume Next. Is there any way to stop execution of the script when error occurred and show the error dialog?

Thank you!

1

1 Answers

0
votes

yes you can do that.. But everytime you need to check the error number ... i.e using err.Number & err.Description you can get the run time error details. Eg:

Function abc()
  on error resume Next
  ..
  msgbox err.Number,,err.description
End Function