测试人社区

win7环境httprunner创建脚手架报错

环境:win7
问题描述:
1.在E盘执行:python -m venv test_httprunner
2.进入Scripts目录,执行:activate
3.安装httprunner,执行:pip3 install httprunner
image
4.执行:hrun --startproject test_httprunner,报错如下:
image

(httprunner_ven) E:\httprunner_ven>hrun --startproject test_httprunner
Traceback (most recent call last):
  File "D:\python\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "D:\python\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "E:\httprunner_ven\Scripts\hrun.exe\__main__.py", line 7, in <module>
  File "e:\httprunner_ven\lib\site-packages\httprunner\cli.py", line 126, in mai
n_hrun_alias
    main()
  File "e:\httprunner_ven\lib\site-packages\httprunner\cli.py", line 100, in mai
n
    main_run(extra_args)
  File "e:\httprunner_ven\lib\site-packages\httprunner\cli.py", line 34, in main
_run
    raise exceptions.ParamsError("Missed testcase path")
httprunner.exceptions.ParamsError: Missed testcase path

命令是 httprunner startproject 没有–