【问题标题】:Unattended run for Gatling加特林无人看管
【发布时间】: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)

【问题讨论】:

    标签: scala maven gatling


    【解决方案1】:

    为此,请转到您的 gatling.conf 文件并设置 mute = true

    【讨论】:

    • 在配置文件中将静音设置为 true 或将其作为属性提供无效。它仍然要求输入。
    • 不,那是对的。我会建议你让它单独工作,然后模仿行为......
    猜你喜欢
    • 2022-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-10
    • 1970-01-01
    • 1970-01-01
    • 2014-09-22
    • 1970-01-01
    相关资源
    最近更新 更多