How can i log messages onto console in Robot framework, when I use the log keyword, it gets logged onto the report file. Please advice.
Log MessageWrites given message to the log file using the specified log level. The message to log and the log level to use are defined using message and level arguments, respectively. If no log level is given, the default level given during library importing is used.
There is no support in robot for getting the current keyword name. Since the code you're writing must be run from a keyword, your keyword should know what its own name is. If you write your keyword in python, the python library can also be a listener which can push and pop keywords on a stack.
Robot Framework is a Python-based, extensible keyword-driven automation framework for acceptance testing, acceptance test driven development (ATDD), behavior driven development (BDD) and robotic process automation (RPA).
The BuiltIn library has a keyword named Log to console which does exactly that.
| | Log to console | hello, world.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With