Allure 报告中没有测试历史记录

问题描述 投票:0回答:1

我正在使用 Allure 框架为 pytest 编写的测试生成报告。 在allure生成的报告中,它生成了趋势图,例如持续时间趋势、类别趋势、成功重试趋势。但是,当我检查每个测试的“历史记录”时,它没有显示过去运行的结果。

这就是我生成报告的方式:

  1. 下载上次运行的诱惑报告
  2. 运行测试并存储结果。
pytest tests --alluredir=pytest-report
  1. 将之前的allure报告历史记录复制到新的报告目录
mv allure-previous-report/history pytest-report/history
  1. 生成吸引力报告
 allure generate pytest-report --clean -o allure-report
  1. 打开诱惑报告:
allure open allure-report -h localhost -p 8083 

我希望看到测试的历史结果,但由于某种原因,

History
选项卡对于所有测试用例都是空的,无法真正理解我做错了什么。

pytest allure
1个回答
0
投票

同样的问题。

配置:

pytest==7.4.2
allure-pytest==2.13.2
selenium==4.13.0
© www.soinside.com 2019 - 2024. All rights reserved.