【发布时间】:2017-03-11 09:15:58
【问题描述】:
我使用原型方法生成了一个用于 gatling 的 maven 项目。当我从 Eclipse 运行 Engine.scala 文件时,我要求输入要运行的模拟。 我使用 Gatling PropertiesBuilder 添加了模拟类的属性,但它仍然要求提供模拟 ID。我想预先提供所有信息,以便在我运行 Engine.scala 时它不会提示我输入。
这是我的代码
val props = new GatlingPropertiesBuilder
props.dataDirectory(IDEPathHelper.dataDirectory.toString)
props.resultsDirectory(IDEPathHelper.resultsDirectory.toString)
props.bodiesDirectory(IDEPathHelper.bodiesDirectory.toString)
props.binariesDirectory(IDEPathHelper.mavenBinariesDirectory.toString)
props.simulationClass("za.co.insights.gatling.RecordedSimulation")
props.runDescription("Testing")
props.mute()
//props.reportsOnly("true")
//props.
//Gatling.fromArgs
Gatling.fromMap(props.build)
【问题讨论】: