终端输入httprunner startproject http_frame,报错:httprunner: error: invalid choice: 'startprojetcet' (choose from 'run', 'make')
时间: 2024-01-02 16:01:59 浏览: 138
如果你使用的是httprunner 2.x版本,则创建项目的命令应该是:
```
hrun startproject http_frame
```
而不是"httprunner startproject http_frame"。请尝试使用上面的命令创建项目。如果还是有问题,请确认已经正确安装了httprunner库,并且检查一下是否有其他错误。
相关问题
输入hrun startproject http_frame报错: ERROR | No valid testcase path in cli arguments:
这个错误提示说明httprunner无法找到有效的测试用例路径。请尝试在命令中加入一个测试用例文件路径,例如:
```
hrun startproject http_frame testsuites/
```
其中,"testsuites/"是你测试用例文件所在的目录路径。你可以根据实际情况修改该路径。
如果还是出现同样的错误,请确认当前目录是否有读写权限,并且检查一下是否有其他错误。
输入hrun init http_frame报错: ERROR | No valid testcase path in cli arguments: ['init', 'http_frame']
非常抱歉,我的回答有误。在httprunner 4.3版本中创建项目的命令应该是:
```
hrun startproject http_frame
```
其中,"http_frame"是你想要创建的项目名称,你可以根据实际情况修改该名称。执行该命令后,httprunner会自动在当前目录下创建一个名为"http_frame"的项目。
如果还是报错,请检查你的httprunner版本是否正确安装,并且确认当前目录是否有读写权限。
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)