Micro Focus QTP (UFT) Forums
changing the font color of text of object column in resultdetails page in test result - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: changing the font color of text of object column in resultdetails page in test result (/Thread-changing-the-font-color-of-text-of-object-column-in-resultdetails-page-in-test-result)

Pages: 1 2


RE: changing the font color of text of object column in resultdetails page in test result - Saket - 05-11-2011

Can you paste your code, I would like to see how you have done that. also mention what actullay dint work, is there any error/issue?


RE:changing the font color of textofobject column in resultdetailspage in test result - atanu - 05-12-2011

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 -
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?