【问题标题】:Unable to use the gatling conf using maven command无法使用 maven 命令使用 gatling conf
【发布时间】:2021-10-07 06:32:22
【问题描述】:

我一直在我的 Gatling 项目中使用 Gatling Config 文件

conf 文件名:gatling.conf 文件放在 src/test/resources 下

当我使用引擎类运行测试时,它会自动选择 conf 文件 虽然当我尝试使用 maven 命令运行测试时,它无法识别 Gatling conf 文件配置

用于运行测试的示例命令是 mvn clean gatling:test -Dgatling.simulationClass=PerformanceTest -Dgatling.conf.file=gatling.conf

【问题讨论】:

  • 您的设置是正确的。您确定您已正确取消注释并删除了您更改的行上的 # 吗?

标签: maven gatling scala-gatling


【解决方案1】:

其实我可以通过以下步骤解决这个问题

将 logback-test.xml 复制到之前在 src/scala 中的 src/test/resources 中

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-06-30
    • 2017-10-24
    • 1970-01-01
    • 2019-08-11
    • 2013-10-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多