【发布时间】:2015-06-05 19:29:50
【问题描述】:
我想在配置文件中配置我的加特林模拟的基本 url。这样我就可以轻松地在测试系统和实时系统之间切换。
当我在 Simulation-scala 文件中配置它时,我工作得很好:
val httpConf = http
.baseURL("http://computer-database.herokuapp.com")
如果我删除上面的行并在 config (gatling.conf) 文件中配置它:
gatling {
http {
baseUrls = "http://localhost8080/baserate"
...
我收到以下错误,我的方案不起作用,因为基本 url 为空。
09:57:26.352 [ERROR] i.g.c.c.GatlingConfiguration$ - Your gatling.conf file is outdated, some properties have been renamed or removed.
Please update (check gatling.conf in Gatling bundle, or gatling-defaults.conf in gatling-core jar).
Enabled obsolete properties:'gatling.http.baseUrls' was removed, use HttpProtocol.
在当前版本的 gatling 中是否仍然可以在
之外配置基本 url我的版本是 gatling-maven-plugin:2.1.2。
【问题讨论】: