allure报告中firefox信息不展示(多浏览器或多线程执行时只显示一个浏览器的日志)

发布时间 2023-08-24 15:15:41作者: 星钥无痕

安装的allure-pytest的版本要是2.11.1之前的(之后的版本没有test_result.historyId,加上应该也可以)

在依赖包Lib--site-packages--allure_pytest--listener.py文件里修改

test_result.historyId = md5(item.nodeid)变成
test_result.historyId = md5(item.nodeid+uuid)
没有test_result.historyId就加上这个标红的语句

修改或加上后的显示: