安装的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就加上这个标红的语句
修改或加上后的显示: