Hello,
I was curious if I could bold and possibly change the color of text in the Ranorex log, without just modifying the XML afterward if possible. Is there a parameter I could pass in with the Ranorex.Log call that would add any distinction (besides pass or fail)?
Thanks
Sierra
Bolding Text in Ranorex Reports
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Bolding Text in Ranorex Reports
You can use the Report.LogHtml method to log text including HTML tags. Just make sure that plain text you want to log does not contain any forbidden characters like '<' or '>'.
Regards,
Alex
Ranorex Team
Regards,
Alex
Ranorex Team
Re: Bolding Text in Ranorex Reports
Works great! Thanks
Re: Bolding Text in Ranorex Reports
Hi,
I want just a part of the reported text to be bolded:
Until now I just use Report.Info:
Report.Info("Total number of objects in Table " & ThTag.Item(0).InnerText & ":" & CountObj)
What I would like to have is, that the middle part in the Ranorex Report is depicted as bolded:
Report.Info("Total number of objects in Table " & ThTag.Item(0).InnerText & ":" & CountObj)
How does this work?
Thanks in advance!
I want just a part of the reported text to be bolded:
Until now I just use Report.Info:
Report.Info("Total number of objects in Table " & ThTag.Item(0).InnerText & ":" & CountObj)
What I would like to have is, that the middle part in the Ranorex Report is depicted as bolded:
Report.Info("Total number of objects in Table " & ThTag.Item(0).InnerText & ":" & CountObj)
How does this work?
Thanks in advance!
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Bolding Text in Ranorex Reports
Hi,
Did you already try what Alex suggested (using the Report.LogHtml)?
Regards,
Markus
Did you already try what Alex suggested (using the Report.LogHtml)?
Regards,
Markus
Re: Bolding Text in Ranorex Reports
Yes I tried to use Report.LogHtml but could not get it working.
Could you please give me an example how to use LogHtml?
Could you please give me an example how to use LogHtml?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Bolding Text in Ranorex Reports
Hi,
Okay, here is a sample code, it shows how it could work for you:
Markus
Okay, here is a sample code, it shows how it could work for you:
Report.LogHtml(ReportLevel.Info,"User","<p>Total number of objects in Table: <span style='font-weight:bold'>"+yourElement.InnerText.ToString()+"</span></p>");Regards,
Markus