10-11-2013, 07:52 PM
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
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