Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic error handling
#4
Solved: 10 Years, 11 Months, 2 Weeks ago
Well, I have to agree with you to an extent. But, vbscript offers all it could offer Smile. However, QTP's log has pretty elaborate error reporting if you use the Reporter.ReportEvent function or even if the object failed it will report the reason. You may want to work on customizing QTP report so that you can add the Err.Values in there.

And for the too many If statements, well, it is basically the net you have to weave to catch the errors. When you are done weaving, what looks like a clutter actually turns out to be an well layered trap. Trust me, it does not slow down execution.

All that said, Error Handling is an challenge and if you could find an impoverished way please do post it across.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
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,552 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: 2 Guest(s)