首页 > Web开发 > 详细

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

时间:2021-08-07 23:09:43      阅读:31      评论:0      收藏:0      [点我收藏+]

一:环境安装

  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 版本重新生成报告即可;

 

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

原文:https://www.cnblogs.com/jc-home/p/15112773.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!