接口自動化HttpRunner安裝


目的:接口自動化測試

httprunner 適用於macOS windows Linux

 https://pypi.org/project/httprunner/

 

 環境:macOS 10.12

前提條件:已安裝python3.7

(需要先檢驗是否安裝了pip,如果安裝的是python3.4版本以上的,就不需要重新安裝)

python3 安裝

pycharm安裝

 

 httprunner3,要求python>=3.6,<4.0

 

安裝升級:

如果之前有安裝過HttpRunner,現在需要升級到最新版本,可以使用-U參數

$ pip3 install -U HttpRunner
$ pip3 install -U git+https://github.com/HttpRunner/HttpRunner.git@master

1.pip3 install httprunner

 

 

 

httprunner 3要求 pytest5.4.2以上 (驗證版本:pip3 show pytest)

 

2.安裝成功驗證

cmd 輸入 hrun -V 

輸入har2case -V

 

一般安裝完httpruuner,會自帶har2case,如果沒有,則需要安裝

pip3 install har2case==0.3.1

或者 pip3 install har2case

 

驗證版本

 

 


免責聲明!

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



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