官网文档:HttpRunner V3.x中文文档
安装
HttpRunner使用python开发,支持Python 3.6+和大多数操作系统。 在Python 3.6/3.7/3.8上 和 MacOS/Linux/Windows上,基于GitHub-Actions 上进行了测试。
HttpRunner存储于PyPI, 支持通过pip安装。
pip3 install httprunner
如果你想保持最新版本,可用github资源地址安装。
pip3 install git+https://github.com/httprunner/httprunner.git@master
如果你之前已安装过HttpRunner,想更新到最新版本,可以使用-U选项。
pip3 install -U httprunner pip3 install -U git+https://github.com/httprunner/httprunner.git@master
安装成功后查看命令
* httprunner:主命令,用于所有功能。
* hrun:指令httprunner r