Windows 配置 allure report 環境


1:配置Java環境(運行allure 需要)

2:安裝powershell

3:安裝scoop方法 :運行 powershell 輸入 : iex (new-object net.webclient).downloadstring('https://get.scoop.sh') 然后根據提示安裝即可

4:安裝allure :scoop install allure

5:生成報告:allure  serve 測試的xml路徑

 

備注:pytest生成xml 命令 :py.test --alluredir report 

生成xml:py.test --alluredir ./result

生產網頁:allure generate ./result/ -o ./report/ --clean

打開網頁:allure open -h 127.0.0.1 -p 8083 ./report/


免責聲明!

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



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