As part of my framework development, i would like to use custom report instead of Reporter usage. I can write separete utility to acheive this. But i am interested on override the Reporter object. I have tried with following.
1. Created a WSC which holds the appropariate methods like ReportEvent with desired parameters.
2. Register WSC and add this in to Reserved Objects which will bring in to Intellisence Editor of my methods.
3. Create Repoter object to Registered WSC and access same as Reporter.ReportEvent 0,”Step1”,”Step Details”,”Image Path”
Here i faced the problem as Reporter Object is already registered cant use the same. Is any there any other ways to achive this.
Alternative soltuions tried:
1. Change the Registry entry Reporter to Reporter1 and tried – No Results.
Note: I can create the Object other then Reporter and access the same. But my intension is not that.
Suggesstions are highly appriciable
I believe you are fighting a limitation of vbScript (not QTP). The short answer is: write your own logging function (or get fancy and develop your own logging object), which in turn ends up calling the QTP Reporter object.
Yes, this means that all your tests have to do this to reap the benefits of you logging enhancements.