如何在Robot Framework中将图像添加到html日志中?

问题描述 投票:0回答:2

如何在robot框架中将图像添加到html日志中?我想在 Robot Framework 的 html 日志中添加一些图片。有人可以对此有一些想法吗?

robotframework
2个回答
8
投票
内置库中的

关键字

Log
html
参数,它可能可以满足您的需要。请参阅文档:http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Log


0
投票

关键字如下。

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

假设 example.png 文件与日志位于同一文件夹中。

© www.soinside.com 2019 - 2024. All rights reserved.