Forum Discussion

saaran's avatar
saaran
Contributor
10 years ago

To handle run time error

Hi,

 

I wan to handle run time error during execution other than using "On Error Resume Next". I want to handle through test complete tool.

 

Please give suggestions to overcome this problem.

 

Regards,

Sarankumar P

  • NisHera's avatar
    NisHera
    Valued Contributor

     Hi ,
    I started with VB-scripting but switch to JScripts, one reason is possibility of try-catch
    error handling. But late found that try-catch are misleading when it comes to fixing errors.

     

    For me error handling in other ways are better than try-catch.
    For example most my error are due to unable to find objects at right time.
    for those I manage waiting, checking-exists, re-routing and bit more designing scripts way-ahead of writing.
    and ofcourse thorough testing of test.