how to get the error message from the Robot Framework?

Viewed 7556

When I write testcase with Robot Framework, I write some error log with Robot Framework API logger.error(msg, html=False), when the test is finished, how can I get the error message?

For example, after the test is finished, log is as below: enter image description here

how can I get the error message that marked in red rect?

2 Answers

Hi @AlexBruce Maybe you can use this KW:

Run Keyword If    '${status}'=='FAIL'    FAIL    msg=${message}

there you can chose the message in ${message}

Related