原因:因為pytest-allure-adaptor庫基本被python3放棄了,運行很不友好,反正我運行就是報錯
解決方法:
先卸載:pip uninstall pytest-allure-adaptor
再安裝:pip allure-pytest
然后再去對應case的文件夾下面cmd里面運行: pytest -s -q --alluredir report (可以改為你想設的路徑,如果是report默認當前目錄下),就會生成report文件夾了
原因:因為pytest-allure-adaptor庫基本被python3放棄了,運行很不友好,反正我運行就是報錯
解決方法:
先卸載:pip uninstall pytest-allure-adaptor
再安裝:pip allure-pytest
然后再去對應case的文件夾下面cmd里面運行: pytest -s -q --alluredir report (可以改為你想設的路徑,如果是report默認當前目錄下),就會生成report文件夾了
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。