Hi does anyone know if it's possible to [img]/images/graemlins/confused.gif[/img] [img]/images/graemlins/confused.gif[/img]. I want to do something like the following:
Public Function GetReporter
Set GetReporter = NewReporter
Public Sub ReportEvent (iStatus, sStepName, sDetails)
If blnReportOverride Then
Call OverrideReporterEvent(iStatus, sStepName, sDetails)
Reporter.ReportEvent iStatus, sStepName, sDetails
RegisterUserFunc "Reporter", "ReportEvent", "GetReporter"
I simply created a ReportHandler class in a function library and declared it in all of my tests. I use it instead of the built-in reporter. It requires that you be familiar with the custom class to make use of the improved reporting but I've documented it fairly well and we have a small team.
I can share code if you like but i don't think i've done anything innovative. it could all be easily replicated.