简体   繁体   中英

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

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.

在此处输入图像描述

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

For example Log Hello, console! console=yes 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM