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

时间:2014-07-25 22:54:00

标签: performance performance-testing gatling vagrant-gatling-rsync

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

2 个答案:

答案 0 :(得分:4)

实际上,您只需使用appropriate option(-s或-sc取决于您使用的Gatling版本)强制进行模拟。

答案 1 :(得分:0)

运行

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

以非交互模式运行测试