Can QTP’s run log be overridden?

Question ID: 104345
0
0

I tried to override QTP’s run log by using…

http://www.advancedqtp.com/community/blogs/yaron-assas-blog144/overriding-qtps-native-reporter/

However, it doesn’t appear that QTP uses ReporterEvent for its internal log. It doesn’t get called.

I want to capture every step to make an run log in a format that I desire. Anyone have an idea if this is possible?

Marked as spam
Posted by (Questions: 2, Answers: 0)
Asked on March 18, 2011 2:34 pm
14 views
Answers (1)
0
Private answer

Set dic = CreateObject(''Scripting.Dictionary'')

dic.Add ''Status'', micFail (or the one you need)

dic.Add ''NodeName'', ''What you need....''

dic.Add (''StepHtmlInfo''), '' '' <-- here you may format your text using HTML Tags within the '' '', let's say something like that...

Expected Actual
You expected this : 65738, 61334, 55662, 52424, 50906, 50064, 50676, 50899, 50150, 52584, But you get : 65251, 60462, 54573, 51314, 49759, 49288, 49866, 50293, 49864, 52317,

You failed !''

Reporter.LogEvent ''User'', dic,

Reporter.GetContext

this will give you what you wanted, with the format you wanted. The only hard part is to format it in HTML.

regards,
Maximilien.

Marked as spam
Posted by (Questions: 0, Answers: 9)
Answered on October 12, 2013 9:09 pm