windows10 环境 httprunner 安装

httprunner是基于Python开发的,所以使用httprunner是需要安装Python。根据官方文档Python3+版本兼容性更好。本文使用Anaconda提供python3+环境。
https://github.com/httprunner/httprunner
安装 Anaconda 参考文档如下:
https://blog.csdn.net/ITLearnHall/article/details/81708148

创建虚拟环境

conda create --name httprunner Python=3.7

进入虚拟环境

activate httprunner

在虚拟环境安装httprunner和har2case

pip install har2case
https://www.cnpython.com/pypi/har2case

由于httprunner3+版本有不可查报错,目前推荐使用2+版本

pip install git+https://github.com/HttpRunner/HttpRunner.git@v2.5.7

验证环境

hrun -V

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。