performance - 在没有交互选项的情况下运行 Gatling

标签 performance performance-testing gatling

当我运行 Gatling 时(性能测试工具),它总是给我一个交互式对话框来一次运行一个 Scala 模拟文件。有没有办法告诉 Gatling 以特定顺序运行所有文件?我确定一定有一个,但似乎没有找到一种方法来指定它。

最佳答案

运行

user@host $ ./bin/gatling.sh -h

返回

GATLING_HOME is set to /path/to/gatling
Usage: compiler [options]

  -h, --help               
  -sf, --simulations-folder <value>

  -bf, --binaries-folder <value>

  -ccp, --compilerClasspath <value>

Usage: gatling [options]

  -h, --help               Show help (this message) and exit
  -nr, --no-reports        Runs simulation but does not generate reports
  -m, --mute               Runs in mute mode: doesn't ask for run description or simulation ID, uses defaults
  -ro, --reports-only <directoryName>
                           Generates the reports for the simulation in <directoryName>
  -df, --data-folder <directoryPath>
                           Uses <directoryPath> as the absolute path of the directory where feeders are stored
  -rf, --results-folder <directoryPath>
                           Uses <directoryPath> as the absolute path of the directory where results are stored
  -bdf, --bodies-folder <directoryPath>
                           Uses <directoryPath> as the absolute path of the directory where bodies are stored
  -sf, --simulations-folder <directoryPath>
                           Uses <directoryPath> to discover simulations that could be run
  -bf, --binaries-folder <directoryPath>
                           Uses <directoryPath> as the absolute path of the directory where Gatling should produce compiled binaries
  -s, --simulation <className>
                           Runs <className> simulation
  -on, --output-name <name>
                           Use <name> for the base name of the output directory
  -rd, --run-description <description>
                           A short <description> of the run to include in the report

并运行

./bin/gatling.sh -s RecordedSimulation

以非交互模式运行测试

关于performance - 在没有交互选项的情况下运行 Gatling,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24965654/

相关文章:

spring-boot - 是否可以在加特林压力测试中模拟数据库调用或 Api 调用?

swift - 为什么字面值比初始值设定项产生更高效的代码?

python - 如何循环遍历相关矩阵以仅提供高于特定阈值的相关对?和/或提高效率

Jmeter的Jenkins性能插件-编辑性能报告表

testing - 如何使用 jmeter 在 websocket 采样器中配置 csv 数据集?

scala - Gatling:为多个 Css 选择器动态组装 HttpCheck

performance - CUDA:内核性能对占用的依赖性

ios - 更新核心数据性能

java - 加载类总数不断增加

java - 在 SCALA 中使用动态值进行 Base64 JAVA 编码 - GATLING