My favorites | Sign in
Project Home Downloads Wiki
Search
for
ConfigFile  
Configuration File Format
Featured
Updated Oct 4, 2011 by cgoldberg

Configuration File Format

Each project contains a config.cfg file where you define settings for a test.

Here is a sample config file showing all possible configuration options:

[global]
run_time: 300
rampup: 300
results_ts_interval: 30

progress_bar: on
console_logging: off
xml_report: off
results_database: sqlite:///projects/default_project/results.db
post_run_script: python projects/default_project/foo.py


[user_group-1]
threads: 30
script: example_mock.py

[user_group-2]
threads: 30
script: example_mock.py

Global Options

  • run_time: duration of test (seconds)
  • rampup: duration of user rampup (seconds)
  • results_ts_interval: time series interval for results analysis (seconds)
  • progress_bar: turn on/off console progress bar during test run
  • console_logging: turn on/off logging to stdout
  • xml_report: turn on/off xml/jtl report
  • results_database: database connection string (optional)
  • post_run_script: hook to call a script at test completion (optional)

User Groups

  • threads: number of threads/virtual users
  • script: virtual user test script to run
Comment by perphy...@gmail.com, Jun 23, 2011

Thanks for this very useful tool. It seems that the threads number should be set the same value for different value, due to a bug in line 94 of multi-mechanize.py. Otherwise, the threads number in the console output is not correct.

Powered by Google Project Hosting