allure报告--显示环境配置信息

一、项目目录下增加environment.properties文件

environment.properties文件内容:

systemVersion=win32
pythonVersion=3.9
allureVersion=2.8.17
author=TesterRoad

二、在运行测试用例时,windows环境增加如下命令:

 os.system('copy environment.properties temp\environment.properties')

生成的报告:

posted @ 2022-11-03 17:30  zhanchenglan  阅读(166)  评论(0编辑  收藏  举报