1、支持操作系统,Windows、mac、Linux
2、安装python,目前版本支持3.4、3.5、3.6
https://www.python.org/downloads/
3、安装pycharm
https://www.jetbrains.com/pycharm/download/#section=windows
4、安装httprunner
https://docs.httprunner.org/installation/
1)首次安装httprunner
$ pip3 install httprunner
2)安装最新版本httprunnner
$ pip3 install git+https://github.com/httprunner/httprunner.git@master
3)升级httprunner
$ pip3 install -U httprunner
$ pip3 install -U git+https://github.com/httprunner/httprunner.git@master
4)检查是否安装成功
$ httprunner -V # hrun -V
5)参数
positional arguments:
{run,startproject,har2case,make}
sub-command help
run Make HttpRunner testcases and run with pytest. 执行pytest测试用例
startproject Create a new project with template structure. 创建项目
har2case Convert HAR(HTTP Archive) to YAML/JSON testcases for HttpRunner. 将har文件转换成YAML/JSON/pytest测试用例
make Convert YAML/JSON testcases to pytest cases. 将YAML/JSON测试用例转换成pytest测试用例
optional arguments:
-h, --help show this help message and exit 展示帮助文档
-V, --version show version 展示版本信息