There are at least a dozen and a half discussions around overriding Reporter.ReportEvent. However, I'm interested in knowing whether anyone here ever tried to add additional functionality to Reporter.ReportEvent.
The goal is to add complimentary code to the existing function so that when a user calls the method, both the default and the custom functionality are exercised.
One thought is that I could achieve this by overriding the method; however, the default functionality would be eliminated if precautions towards retention aren't taken.
So with that in mind, does anyone know where I can look to find the original code for this method?
I remember seeing Tarun write about this in his book about "So I thought that I knew QTP". Sorry if the Title is not exact. He was writing about overwriting the properties of Reporter.ReportEvent. It may be a good place to look
Let's see if he chimes in on this post. I've seen plenty of code examples on how to override the function, but would love to see how to override it and retain its original functionality. I should have realized this earlier, but the original code may not be a viable cut n' paste job because the target method is wrapped up in QTP's class libraries. But if I could find the equivalent (which as you suggest, may be in Tarun's book), then that could work too.
Last edited by CWFTESTY; 12-13-2013 at 04:52 AM.
Here's a link to where Tarun assisted someone else with the same issue... Overriding Reporter & Using the Default functionality