20

I have a RF test and I need to print the variables values, not the name. I am trying with "log to console Num: ${Num}" but log.html only shows:

**KEYWORD** BuiltIn . Log To Console Num:, ${Num}
Documentation:  
Logs the given message to the console.
Start / End / Elapsed:  20170209 12:14:05.273 / 20170209 12:14:05.273 / 00:00:00.000

I already tried to setting log level (TRACE, DEBUG) but didn't work. I appreciate some help, thanks.

koxta
  • 846
  • 2
  • 8
  • 30

3 Answers3

29

Try using keyword "Log"

Log    Num value is ${Num}
Rakesh
  • 1,525
  • 1
  • 15
  • 25
2

In case anyone still looking for how to print to console, simply use:

Log To Console Hello World

or

Log To Console ${Variable}

0

As of robotframework 5.0.1 the command is now:

Log  "Num value is ${Num}"  console=True

See http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Log

user8128167
  • 6,929
  • 6
  • 66
  • 79