Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic error handling
#3
Solved: 10 Years, 11 Months, 2 Weeks ago
Hey Basanth,

Thanks for the input.

I think you are saying to make your function call for every value I set in the app. That is probably the right way to handle it, but it still means I'm effectively doing, "If Err.Number <> 0 then" after every single line of my code that sets a value. That just seems like a huge amount of overhead to me. It is a lot cleaner looking than having "If Err.Number <> 0 then" after every line though.

I guess I was hoping there was something like, "on error goto MyErrorHandler" which would let me execute a large chunk of code, but still let me know where the error happened or what the error was.

Sounds like there is just no way to do that in QTP. Oh well.

I guess when you buy an almost-free program like QTP you can't have everything ;-).

Thanks,
Mark
Reply


Messages In This Thread
Basic error handling - by RandomGrin - 10-10-2013, 11:16 PM
RE: Basic error handling - by basanth27 - 10-11-2013, 10:11 AM
RE: Basic error handling - by RandomGrin - 10-11-2013, 07:52 PM
RE: Basic error handling - by basanth27 - 10-12-2013, 07:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Estimate for preparing a basic test script QTPBeginner48 4 3,004 02-25-2014, 03:45 PM
Last Post: guin.anirban
  Flight reservation basic parameterization not working on qtp 11.5 srs246 0 3,735 01-08-2013, 10:14 AM
Last Post: srs246
  3 basic questions..please help Blizna 5 5,110 07-09-2010, 12:21 PM
Last Post: sasmitakumari
  Visual Basic Application Recording dlopes 2 2,553 07-09-2010, 10:21 AM
Last Post: Saket
  What is the errors handling ? keni 1 2,601 10-26-2009, 09:47 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)