allure使用MASTER_HELPER报错cannot find reference MASTER_HELPER in allure.py

重装系统后,运行原来的代码,发现allure调用MASTER_HELPER时报错:cannot find reference MASTER_HELPER in allure.py

 通过查找发现是原来安装了pytest-allure-adaptor插件,重装系统后,使用Python3.7,allure2.7 ,版本冲突的问题,不再安装pytest-allure-adaptor插件,而是安装的allure-pytest

 所以,使用allure定制测试用例,直接调用如下:

@allure.feature('app自动化测试')

 可以看出,不再有黄色的警示

原文地址:https://www.cnblogs.com/may18/p/13408129.html