Page 1 of 1

Report.Log Usage

Posted: Thu Sep 06, 2012 3:01 pm
by regex
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!

Re: Report.Log Usage

Posted: Thu Sep 06, 2012 4:14 pm
by Ciege
This is how I do it...

Code: Select all

Report.Info("This is the value from Row 1: " +  MinorEffectPercentRow1);

Re: Report.Log Usage

Posted: Thu Sep 06, 2012 9:00 pm
by regex
Thank you! This helped me.