05-12-2011, 11:57 PM
No error has been occured.
Actually You have told me that pass the step name as plain text.
So,I was little bit confused and doing it in two ways.
Firstly I did,
I just changed objDict("PlainText")=strStepName instead of objDict("NodeName")=strStepName.
After that the stepname ,objcet name and in left pane of Result page nothing is shown.
The code is given -
I have attached the screenshot as Screenshot1.jpg .
AND
Secondly,
Also if I have passed 2nd parameter in CustomReportEntry function "Custom Report Example",then the green color of StepName and Object name can't be displyed.
I am also attached this screenshot as Screenshot2.jpg .
Actually, Which thing do you want told me or anything else?
Actually You have told me that pass the step name as plain text.
So,I was little bit confused and doing it in two ways.
Firstly I did,
I just changed objDict("PlainText")=strStepName instead of objDict("NodeName")=strStepName.
After that the stepname ,objcet name and in left pane of Result page nothing is shown.
The code is given -
Code:
Function CustomReportEntry(strStatus, strStepName, strMessage)
Set objDict = CreateObject("Scripting.Dictionary")
objDict("Status") = strStatus
objDict("PlainText") = strStepName
objDict("StepHtmlInfo") = strMessage
objDict("DllIconIndex") = 206
objDict("DllIconSelIndex") = 206
objDict("DllPAth") = "C:\Program Files\HP\QuickTest Professional\bin\ContextManager.dll"
Reporter.LogEvent "User", objDict, Reporter.GetContext
End Function
CustomReportEntry micPass, "<font color='green' ><b>Custom Report Example</b></font> ", " <font color='green' ><b>This is a custom report entry!</b> </font> "
I have attached the screenshot as Screenshot1.jpg .
AND
Secondly,
Also if I have passed 2nd parameter in CustomReportEntry function "Custom Report Example",then the green color of StepName and Object name can't be displyed.
I am also attached this screenshot as Screenshot2.jpg .
Actually, Which thing do you want told me or anything else?