Alex Bruce
Alex Bruce

Reputation: 553

how to add image to the html log in Robot Framework?

how to add image to the html log in robot framework? I want to add some picture into the html log in Robot Framework. Could any one have some ideas about it?

Upvotes: 4

Views: 5533

Answers (2)

jba065
jba065

Reputation: 351

Keyword is as follows.

Log            <img src="example.png">        html=true

Assuming the example.png file is in the same folder as the logs.

Upvotes: 1

Jan Kovař&#237;k
Jan Kovař&#237;k

Reputation: 1582

Keyword Log from the BuiltIn library has html argument which can possibly do what you need. See doc: http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Log

Upvotes: 8

Related Questions