allure生成测试报告,index.html页面内容为空

一:环境安装

  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