当我运行Gatling(性能测试工具)时,它总是给我一个交互式对话框来一次运行一个 Scala 模拟文件。有没有办法告诉 Gatling 以特定顺序运行所有文件?我确定一定有一个,但似乎没有找到一种方法来指定它。
问问题
3344 次
2 回答
5
跑步
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
以非交互模式运行测试
于 2017-06-09T07:59:51.483 回答
4
实际上,您只需要使用适当的选项(-s 或 -sc 取决于您使用的 Gatling 版本)强制模拟。
于 2014-07-26T07:06:22.820 回答