Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you log messages onto console in Robotframework? Is there any keyword?

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.

like image 486
velapanur Avatar asked Jul 31 '14 22:07

velapanur


People also ask

How do I log messages in Robot Framework?

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.

How do I get the current keyword in Robot Framework?

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.

What is Robot Framework keyword?

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).


1 Answers

The BuiltIn library has a keyword named Log to console which does exactly that.

| | Log to console | hello, world.
like image 199
Bryan Oakley Avatar answered Oct 11 '22 03:10

Bryan Oakley