Contributions
Re: Save a Log Error for later
Yeah that link doesn'tt really help, and the idea you had about saving the Log to an object, or maybe there is a property on rows in the log that let you disable re-enable them. The problem is there is a master catch statement outside of the script where the Error occurs, that makes a decision on if the Error needs to be logged, or if it was expected to happen such as in negative testing. The reason I don't want to log in the catch statement is then I lose the stack trace to where the Error actually happened. Right now I am just attaching the script name to an Error object, and printing that in text form when I log the Error in the master catch. The stack trace for every error therefore always points to the exact same spot. But maybe there is no real solution for this.839Views0likes0CommentsSave a Log Error for later
Hi I am using JScript in Test Complete 9 and I was wondering if there was a way to Log an error, remove the error from the log, and then decide again later if you want to re-enable it. I have found the OnLogError Event Handler and can use LogParams.Locked set to true to make it so the error does not get posted to the log, but I am not sure how to go about re-enabling it later. Getting the LogParams object out and then changing the value back to false later does not make the Error appear. I was wondering if there was any other methods available to do this.2.4KViews0likes3Comments