Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changing the font color of text of object column in resultdetails page in test result
#11
Solved: 11 Years, 4 Months, 4 Weeks ago
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?

Reply
#12
Solved: 11 Years, 4 Months, 4 Weeks ago
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?


Attached Files Image(s)
       
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 1,147 06-17-2019, 12:19 PM
Last Post: Treirk
  Getting background color of an object on mouse over Surya 2 3,951 06-27-2018, 08:51 PM
Last Post: vensas3181
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,121 06-06-2017, 11:12 AM
Last Post: workrohit08
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,314 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  Page element keep changing chong67 4 4,690 11-08-2016, 09:17 PM
Last Post: Paul Rammone

Forum Jump:


Users browsing this thread: 2 Guest(s)