python:3.7.3
allure:2.13.10
pytest:6.2.4
allure-pytest:2.9.42
解析:
该环境自动化脚本生成报告,打开后显示内容空白。通过分析得出结果:allure-pytest 生成测试报告结果后,allure转换成html文件。但因为allure 版本比allure-pytest高,存在版本兼容问题,导致html内容展示有误;
解决:
只需替换低版本的allure 工具,或者升级allure-pytest 版本重新生成报告即可;
原文:https://www.cnblogs.com/jc-home/p/15112773.html