【问题标题】:Gatling scala gradle, HowTo set requestTimeoutGatling scala gradle,如何设置 requestTimeout
【发布时间】:2021-05-28 20:44:36
【问题描述】:

我正在使用 gatling gradle 插件,我正在尝试增加默认超时时间。

这不起作用。 我不断得到

> i.g.h.c.i.RequestTimeoutException: Request timeout to localhos     47 (94,00%)
t/127.0.0.1:8080 after 60000 ms

我的 gatling.conf 是

gatling {
  core {

  http {
    pooledConnectionIdleTimeout = 600000       # Timeout in millis for a connection to stay idle in the pool
    requestTimeout = 1000000                    # Timeout in millis for performing an HTTP request
  }

  }
}

我试图破坏我的 gatling.conf 并建立废墟

/build/resources/gatling/gatling.conf: 8: Key 'qd  qw  qd  qd' may not be followed by token: 'core' (if you intended 'core' to be part of a key or string value, try enclosing the key or value in double quotes)

所以 gatling 确实会尝试读取我的文件,但不想覆盖设置。

谁知道如何覆盖它?

【问题讨论】:

    标签: gatling scala-gatling gatling-plugin


    【解决方案1】:

    你的配置文件有误。

    您的文件,格式正确:

    gatling {
      core {
        http {
          requestTimeout = 1000000
        }
      }
    }
    

    应该如何,就像在documentation

    gatling {
      core {
        # core options
      }
      http {
        requestTimeout = 1000000
      }
    }
    

    【讨论】:

      猜你喜欢
      • 2018-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 2017-06-06
      • 2023-02-02
      • 1970-01-01
      相关资源
      最近更新 更多