目的:接口自動化測試
httprunner 適用於macOS windows Linux
https://pypi.org/project/httprunner/
環境:macOS 10.12
前提條件:已安裝python3.7
(需要先檢驗是否安裝了pip,如果安裝的是python3.4版本以上的,就不需要重新安裝)
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
驗證版本