我想在配置文件中配置我的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