目的:接口自动化测试

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安装

 

安装升级:

如果之前有安装过HttpRunner,现在需要升级到最新版本,可以使用-U参数

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

1.pip3 install httprunner

接口自动化HttpRunner安装

 

 接口自动化HttpRunner安装

 

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

接口自动化HttpRunner安装

 

2.安装成功验证

cmd 输入 hrun -V 

接口自动化HttpRunner安装

输入har2case -V

接口自动化HttpRunner安装

 

一般安装完httpruuner,会自带har2case,如果没有,则需要安装

pip3 install har2case==0.3.1

或者 pip3 install har2case

接口自动化HttpRunner安装

 

验证版本

 接口自动化HttpRunner安装

 

相关文章:

  • 2021-05-14
  • 2022-01-04
  • 2021-10-27
  • 2021-11-28
  • 2021-06-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-21
  • 2021-11-07
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
相关资源
相似解决方案