前情提要:推荐阅读官方中文文档,路径https://httprunner.com/docs/introduction/
1、安装下载
linux系统下快速安装命令:bash -c “$(curl -ksSL https://httprunner.com/script/install.sh)”
对于windows用户,最好到官网进行下载。
下载地址:https://github.com/httprunner/httprunner/releases
下载后的tar.gz文件手动改为zip格式并解压。
2、部署配置
a)在C盘根目录下创建tmp/hrp目录(自定义目录),将hrp.exe文件放在目录下。
b) 配置hrp服务的环境变量,我的电脑——属性——高级系统设置——环境变量,在PATH下新增系统变量。
3、快速入门
安装成功后,你将获得一个 hrp 命令行工具,执行 hrp -h 即可查看到参数帮助说明。
$ hrp -h
██╗ ██╗████████╗████████╗██████╗ ██████╗ ██╗ ██╗███╗ ██╗███╗ ██╗███████╗██████╗
██║ ██║╚══██╔══╝╚══██╔══╝██╔══██╗██╔══██╗██║ ██║████╗ ██║████╗ ██║██╔════╝██╔══██╗
███████║ ██║ ██║ ██████╔╝██████╔╝██║ ██║██╔██╗ ██║██╔██╗ ██║█████╗ ██████╔╝
██╔══██║ ██║ ██║ ██╔═══╝ ██╔══██╗██║ ██║██║╚██╗██║██║╚██╗██║██╔══╝ ██╔══██╗
██║ ██║ ██║ ██║ ██║ ██║ ██║╚██████╔╝██║ ╚████║██║ ╚████║███████╗██║ ██║
╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝
HttpRunner is an open source API testing tool that supports HTTP(S)/HTTP2/WebSocket/RPC
network protocols, covering API testing, performance testing and digital experience
monitoring (DEM) test types. Enjoy! ✨ 🚀 ✨
License: Apache-2.0
Website: https://httprunner.com
Github: https:/