Report.Log Usage

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
regex
Posts: 48
Joined: Tue Aug 14, 2012 5:47 pm

Report.Log Usage

Post by regex » Thu Sep 06, 2012 3:01 pm

I am validating strings, doubles, or ints within HTML cells.

I use:

Code: Select all

Report.Log(ReportLevel.Info, "User",  MinorEffectPercentRow1);
I want to be able to say "This is the value from Row 1:" MinorEffectPercentRow1

I get errors when doing:

Code: Select all

Report.Log(ReportLevel.Info, "User",  " This is the value from Row 1:", MinorEffectPercentRow1);
Argument 4: cannot convert from 'string' to 'Ranorex.Core.IReportMetadata[]' (CS1503) - C:\Users\XXX\....

How do I correctly print out the graceful log with "This is the value from row 1:" and than use the variable or repository declaration?

Thanks!

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Report.Log Usage

Post by Ciege » Thu Sep 06, 2012 4:14 pm

This is how I do it...

Code: Select all

Report.Info("This is the value from Row 1: " +  MinorEffectPercentRow1);
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

regex
Posts: 48
Joined: Tue Aug 14, 2012 5:47 pm

Re: Report.Log Usage

Post by regex » Thu Sep 06, 2012 9:00 pm

Thank you! This helped me.