How to print the info, message, status, tags part which present in the log file on to the console in robotframework

183 views Asked by At

Can we print the marked in the console? Please click on the logfile for the image reference which is the log file of the robotframework.

enter image description here

1

There are 1 answers

3
mdp On

You can use the Log keyword and pass in console=yes

For example Log Hello, console! console=yes

This is detailed here: https://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Log

As far as logging the other data, you can find those in the Automatic Variables

For example Log Hello, from ${TEST_NAME} console=yes