Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 518
Alex Bruce Avatar asked Oct 14 '25 08:10

Alex Bruce


2 Answers

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

like image 160
Jan Kovařík Avatar answered Oct 17 '25 18:10

Jan Kovařík


Keyword is as follows.

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

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

like image 34
jba065 Avatar answered Oct 17 '25 20:10

jba065



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!