Add an "html link" in a Report action

Best practices, code snippets for common functionality, examples, and guidelines.
swmatisa
Posts: 122
Joined: Fri Aug 05, 2011 7:52 am

Add an "html link" in a Report action

Post by swmatisa » Fri Jul 06, 2012 3:53 pm

WinXP SP3 (WindowsUpdate done)
Ranorex 3.3.0
*********************************
Hello,

In the Ranorex report, I need to write a log message to give a link to an internal data result file (hyperlink). Any idea?

Regards
SW

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Add an "html link" in a Report action

Post by Support Team » Tue Jul 10, 2012 7:59 am

Hello,

You can use the following method in the UserCode to add a link to your Report.
Report.LogHtml(Ranorex.ReportLevel.Info, "Info", "<a href='http://www.ranorex.com'>Ranorex</a>");
Regards,
Bernhard
Ranorex Support Team
.
Image

swmatisa
Posts: 122
Joined: Fri Aug 05, 2011 7:52 am

Re: Add an "html link" in a Report action

Post by swmatisa » Tue Jul 10, 2012 9:15 am

It works.

Thanks
SW

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Add an "html link" in a Report action

Post by omayer » Wed Oct 31, 2012 5:22 pm

Where do I insert this method , since i do have multiple methods that i call to run the test,
Thank you
Tipu

swmatisa
Posts: 122
Joined: Fri Aug 05, 2011 7:52 am

Re: Add an "html link" in a Report action

Post by swmatisa » Thu Nov 01, 2012 9:14 am

Hello,
omayer wrote:Where do I insert this method , since i do have multiple methods that i call to run the test,
I am not sure to understand the question.

You can call this method in Usercode each time you need to report an information with an "html" part.

Regards
Hope this helps
SW