-问题已解决。请参阅注释
pytest-html很棒。在本地查看报告时,我可以单击passskip复选框。我还可以单击每一列的排序按钮

我使用Jenkins“发布html报告”来查看有关Jenkins的报告。列排序按钮消失了,复选框也消失了。提前谢谢。

pytest -vs ${test_suite} --url $url --junitxml ${test_suite_xml} --html=${test_suite_html}
pytest-html 1.19.0
Jenkins 2.121.2
html publisher插件1.16
发布于 2018-10-03 08:10:41
找到原因了。Java脚本已禁用。请使用此链接访问set Content Security Policy
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
令我困惑的是,运行该命令后似乎什么也没有发生。原因如下:
How to interpret the output:
No output below "Result" header: default protection
Output Result: below "Result" header: protection disabled
Output Result: some text here below "Result" header: custom protectionhttps://stackoverflow.com/questions/52572163
复制相似问题