I think "On Error Resume Next" is the best solution in this case.
On Thu, Feb 13, 2014 at 12:58 PM, Shantanu Joshi <[email protected] > wrote: > Hi All, > > One interview question related to error handling: > > Question : There is a 50 lines of code in vb script in one of my actions > in qtp. The probable error is going to occur in between line 11 to 20. You > dont know what the exact line no where the error is going to occur. How > would you handle this situation in vb script through error handling? > > Thanks in advance!! > > Regards, > Shantanu > > -- > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "QTP - HP Quick Test Professional - Automated Software Testing" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
