Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Intellij idea 范围报告-使用Intellij IDEA打开html页面时不显示图像_Intellij Idea - Fatal编程技术网

Intellij idea 范围报告-使用Intellij IDEA打开html页面时不显示图像

Intellij idea 范围报告-使用Intellij IDEA打开html页面时不显示图像,intellij-idea,Intellij Idea,在Intellij IDEA 2019.3.3中,我有一个包含selenium、testng和extent reports的java项目,该项目在网站上运行自动测试。该代码为测试生成html报告,并保存测试失败的屏幕截图以在报告中显示它们。该代码将截图的绝对路径放入这些报告中失败测试的html代码中 当我通过Intellij打开html测试报告(报告>右键单击>在浏览器中打开>chrome)时,屏幕截图的缩略图不存在。也没有占位符。这是虫子吗?如果没有,那么我是否需要更改Intellij IDE

在Intellij IDEA 2019.3.3中,我有一个包含selenium、testng和extent reports的java项目,该项目在网站上运行自动测试。该代码为测试生成html报告,并保存测试失败的屏幕截图以在报告中显示它们。该代码将截图的绝对路径放入这些报告中失败测试的html代码中

当我通过Intellij打开html测试报告(报告>右键单击>在浏览器中打开>chrome)时,屏幕截图的缩略图不存在。也没有占位符。这是虫子吗?如果没有,那么我是否需要更改Intellij IDEA中的任何设置以显示缩略图


PS-我试图用chrome和firefox打开报告,但遇到了同样的问题。我还没有用一个简单的java项目测试过这一点,该项目的文件夹中有一个html页面。你可以试试。

我不知道这是Intellij IDEA中的一个bug还是一个功能。但是,简单的解决方案是直接用浏览器打开html报告。图像缩略图显示在那里。

我不知道这是Intellij IDEA中的错误还是功能。但是,简单的解决方案是直接用浏览器打开html报告。图像缩略图显示在那里