如何在 ExtentReports 4.0.9 中增加屏幕截图缩略图的大小
How to increase the size of the Screenshot Thumbnails in ExtentReports 4.0.9
我正在尝试自定义 ExtentReports 4.0.9
当我在测试失败后打开报告时,它会将屏幕截图显示为非常小的缩略图。我怎样才能增加缩略图的大小。
我已经试过了-config.xml
<!-- custom styles -->
<styles>
<![CDATA[
.featherlight-image { border: 1px solid #f6f7fa; cursor: zoom-in; width: 100px; }
]]>
</styles>
但是没用。
请建议如何增加缩略图的大小。
我已经研究过了,终于找到了解决我问题的方法。
我从 Extent Report 4 的 htmlreported 添加了一些 CSS 代码。
htmlReporter.config().setCSS(".r-img { width: 30%; }");
report=new ExtentReports();
report.attachReporter(htmlReporter);
我在配置 ExtentReport 时添加了上面的代码。
我希望它对面临同样情况的人有用。
我正在尝试自定义 ExtentReports 4.0.9 当我在测试失败后打开报告时,它会将屏幕截图显示为非常小的缩略图。我怎样才能增加缩略图的大小。
我已经试过了-config.xml
<!-- custom styles -->
<styles>
<![CDATA[
.featherlight-image { border: 1px solid #f6f7fa; cursor: zoom-in; width: 100px; }
]]>
</styles>
但是没用。 请建议如何增加缩略图的大小。
我已经研究过了,终于找到了解决我问题的方法。 我从 Extent Report 4 的 htmlreported 添加了一些 CSS 代码。
htmlReporter.config().setCSS(".r-img { width: 30%; }");
report=new ExtentReports();
report.attachReporter(htmlReporter);
我在配置 ExtentReport 时添加了上面的代码。
我希望它对面临同样情况的人有用。