首先在Allure测试报告优化的时候遇到如下问题:
右边的一列没有用,却占位影响了前列的显示,所以就把后面一列隐藏掉。
相信大家在网上也能看到解决方法,然而这里有一个天坑!!!
解决方法:python 系统目录 找到文件D:\Python38\Lib\site-packages\allure_pytest\listener.py
注释掉原来的extend,修改如下:
test_result.parameters.extend([])
# test_result.parameters.extend(
# [Parameter(name=name, value=represent(value)) for name, value in params.items()])
然而却出现了更坏的结果,报表里面,失败的测试用例缺失,不见了。
重点!!!!!历经九九,九十九难,发现allure-pytest 的版本(2.13.2)过高,迅速降温到2.9.41(pip install allure-pytest==2.9.41),阿弥陀佛,整个世界清静了。