【问题标题】:Gauge: Failed to start gauge API: Timed out connecting to python #1932仪表:无法启动仪表 API:连接到 python #1932 超时
【发布时间】:2021-06-06 20:55:46
【问题描述】:

描述错误 启动仪表 API 失败:连接 python 超时

复制 重现行为的步骤(或项目):

初始化一个仪表项目 运行仪表命令 查看错误 日志

08-03-2021 15:42:39.185 [Gauge] [DEBUG] Created gauge_screenshots_dir at /Users/xapirija/Development/Career/WB/tmz-qa/app/.gauge/screenshots
08-03-2021 15:42:39.191 [Gauge] [DEBUG] Plugin screenshot is already installed.
08-03-2021 15:42:39.196 [Gauge] [DEBUG] Plugin reportserver is already installed.
08-03-2021 15:42:39.199 [Gauge] [DEBUG] Plugin python is already installed.
08-03-2021 15:42:39.202 [Gauge] [DEBUG] Plugin html-report is already installed.
08-03-2021 15:42:39.205 [Gauge] [DEBUG] Plugin xml-report is already installed.
08-03-2021 15:42:39.208 [Gauge] [DEBUG] Plugin spectacle is already installed.
08-03-2021 15:42:39.214 [Gauge] [DEBUG] Plugin flash is already installed.
08-03-2021 15:42:39.220 [Gauge] [DEBUG] Parsing started.
08-03-2021 15:42:39.221 [Gauge] [DEBUG] Started concepts parsing.
08-03-2021 15:42:39.946 [Gauge] [DEBUG] 0 concepts parsing completed.
08-03-2021 15:42:39.977 [Gauge] [DEBUG] Started specifications parsing.
08-03-2021 15:42:40.134 [Gauge] [DEBUG] 178 specifications parsing completed.
08-03-2021 15:42:40.134 [Gauge] [DEBUG] Applying tags filter: tmz-share & \!analytics
08-03-2021 15:42:40.159 [Gauge] [DEBUG] The following specifications satisfy filter criteria:
08-03-2021 15:42:40.159 [Gauge] [DEBUG] specs/projects/share/tmz/share_tmz__articles.spec
08-03-2021 15:42:40.159 [Gauge] [DEBUG] specs/projects/share/tmz/share_tmz__videos.spec
08-03-2021 15:42:40.159 [Gauge] [DEBUG] Parsing completed.
08-03-2021 15:42:41.891 [Gauge] [DEBUG] Checking updates...
08-03-2021 15:42:41.896 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/flash?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.023 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/html-report?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.081 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/python?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.151 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/reportserver?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.183 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/screenshot?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.222 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/spectacle?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:42.270 [Gauge] [DEBUG] Downloading https://downloads.gauge.org/plugin/xml-report?l=python&p=flash,html-report,python,reportserver,screenshot,spectacle,xml-report&o=darwin&a=amd64
08-03-2021 15:42:44.956 [python] [INFO] Python: 3.9.1
08-03-2021 15:42:44.956 [python] [DEBUG] Loading step implementations from /Users/xapirija/Development/Career/WB/tmz-qa/app/step_impl dirs.
08-03-2021 15:43:10.217 [Gauge] [CRITICAL] Failed to start gauge API: Timed out connecting to python

Expected behavior
Should execute test suite

Versions: 1.1.6

gauge -v
OS [e.g. MacOS 10.15.6 (19G2021) please be specific ] macOS 10.15.7
Runner info (Please specify the correct version of Java/Node/Python/Dotnet/Ruby) Python 3.9.1
IDE info (If using VS Code or Intellij IDEA) VS Code
Additional context```

【问题讨论】:

    标签: python testing automation gauge


    【解决方案1】:

    您可以尝试在 gauge.properties 中设置以下 2 个配置

    runner_connection_timeout 200000
    runner_request_timeout 500000
    

    https://docs.gauge.org/configuration.html?os=macos&language=javascript&ide=vscode

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-30
      • 1970-01-01
      • 2018-06-24
      • 2015-10-06
      • 1970-01-01
      • 2022-06-15
      • 1970-01-01
      相关资源
      最近更新 更多