解决HttpRunner安装后,hrun -V和locusts -V没有出现版本号的办法。

HttpRunner 是一个基于 Python 开发的测试框架,可以运行在 macOS、Linux、Windows 系统平台上。
具体安装请看httprunner中文官方文档:https://cn.httprunner.org/Installation/
安装:
$ pip install httprunner

问题起源:

安装后会发现httprunner新增的ate、hrun、locusts等命令并不能正常使用,如hrun -V时,会出现如下图所示情况:

解决HttpRunner安装后,hrun -V和locusts -V没有出现版本号的办法。 

问题缘由:

$ pip install httprunner 是托管在 PyPI 的稳定版本,库内某些文件不完整导致库内的命令不能

正确安装。

问题解决:

在github找到httprunner ,下载到本地,然后安装即可。

httprunner在GitHub 仓库地址:https://github.com/HttpRunner/HttpRunner

解决步骤:

1、浏览器输入httprunner在GitHub 仓库地址:https://github.com/HttpRunner/HttpRunner

2、找到下载按钮解决HttpRunner安装后,hrun -V和locusts -V没有出现版本号的办法。

3、下载httprunner压缩包到本地。

解决HttpRunner安装后,hrun -V和locusts -V没有出现版本号的办法。

4、下载完毕之后,找到压缩包绝对路径。

解决HttpRunner安装后,hrun -V和locusts -V没有出现版本号的办法。

5、打开cmd窗口,输入$ pip install F:\迅雷下载\httprunner-master.zip 安装即可解决。

解决HttpRunner安装后,hrun -V和locusts -V没有出现版本号的办法。

6、输入hrun -V 和locusts -V 就可以看到问题已解决。

解决HttpRunner安装后,hrun -V和locusts -V没有出现版本号的办法。