我想在配置文件中配置我的gatling模拟的基础url。这样我就可以轻松地在测试和实时系统之间切换。Gatling在配置文件中配置基础url
我工作得很好,当我与它配置在仿真斯卡拉文件:
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.
难道还要在加特林的当前版本配置
我的版本是加特林Maven的插件外侧的底部网址:2.1.2。
这是外部脚本变量推荐的方式命名。谢谢! – ChaitanyaBhatt 2016-10-07 21:56:22