【问题标题】:Use HttpRunner to run the command "hrp run" and report an error使用HttpRunner运行命令“hrp run”报错
【发布时间】:2022-07-30 11:08:12
【问题描述】:

运行以下命令:

$ hrp run demo/testcases/demo_requests.yml demo/testcases/demo_ref_testcase.yml

错误:

    11:01AM INF Set log to color console other than JSON format.
    11:01AM ??? Set log level
    11:01AM INF [init] SetFailfast failfast=true
    11:01AM INF [init] SetSaveTests saveTests=false
    11:01AM INF [init] SetgenHTMLReport genHTMLReport=true
    11:01AM INF [init] SetRequestsLogOn
    11:01AM INF load file path=demo/testcases/demo_requests.yml
    11:01AM INF load file path=demo/testcases/demo_ref_testcase.yml
    11:01AM INF load file path=~/demo/testcases/demo_requests.yml
    11:01AM INF load testcases successfully count=2
    11:01AM INF ensure python3 venv packages=["funppy==v0.4.3"] python=~/.hrp/venv/bin/python
    11:01AM INF installing python package package=funppy==v0.4.3
    11:01AM ERR init plugin failed: ~/demo/debugtalk.py error="ensure python venv failed: pip install funppy==v0.4.3 failed: pip install package failed: exit status 1"
    11:01AM ERR [Run] init session runner failed error="init plugin failed: ensure python venv failed: pip install funppy==v0.4.3 failed: pip install package failed: exit status 1"

我已经安装了 python3-venv 和 funppy:

  1. 安装了python3-venv

    dpkg -l|grep python3-venv ii python3-venv 3.6.7-1~18.04 amd64 pyvenv-3 二进制python3(默认python3版本)

  2. 已安装 funppy

    点列表 | grep 有趣的 有趣的 0.4.3

【问题讨论】:

    标签: python


    【解决方案1】:

    不要使用这个 httprunner 测试工具,它会将您的所有测试活动捕获到 Google Analytics 并将错误日志发送到 sentry.io 数据库

    【讨论】:

      猜你喜欢
      • 2021-05-04
      • 2017-12-28
      • 1970-01-01
      • 2021-08-29
      • 2018-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-12
      相关资源
      最近更新 更多