pytest+allure結合執行命令出錯(TypeError: required field "posonlyargs" missing from arguments)


如果出現的錯誤如下截圖:

TypeError: required field "posonlyargs" missing from arguments

 

 解決方法:把關於allure的包文件進行卸載

1.可以在File-Setting-Project:Project Interpreter 把關於allure的包進行卸載

2.可以參考這個鏈接進行再安裝:http://www.51testing.com/html/17/n-4464317.html

3.如果安裝后,執行命令(例如:pytest -s -q --alluredir allure-xml)出現錯誤,可參考鏈接進行解決:https://www.pythonf.cn/read/21629


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM