fl-run-test – 一个FunkLoad单元测试

A FunkLoad unittest use a configuration file named [class].conf, this
configuration is overriden by the command line options.

See http://funkload.nuxeo.org/ for more information.

Examples
========
fl-run-test myFile.py
Run all tests (including doctest with python2.4).
fl-run-test myFile.py test_suite
Run suite named test_suite.
fl-run-test myFile.py MyTestCase.testSomething
Run a single test MyTestCase.testSomething.
fl-run-test myFile.py MyTestCase
Run all 'test*' test methods and doctest in MyTestCase.
fl-run-test myFile.py MyTestCase -u http://localhost
Same against localhost.
fl-run-test myDocTest.txt
Run doctest from plain text file (requires python2.4).
fl-run-test myDocTest.txt -d
Run doctest with debug output (requires python2.4).
fl-run-test myfile.py -V
Run default set of tests and view in real time each
page fetch with firefox.
fl-run-test myfile.py MyTestCase.testSomething -l 3 -n 100
Run MyTestCase.testSomething, reload one hundred
time the page 3 without concurrency and as fast as
possible. Output response time stats. You can loop
on many pages using slice -l 2:4.
fl-run-test myFile.py -e [Ss]ome
Run all tests that match the regex [Ss]ome.
fl-run-test myFile.py -e '!xmlrpc$'
Run all tests that does not ends with xmlrpc.
fl-run-test myFile.py --list
List all the test names.
fl-run-test -h
More options.

Options
=======
--version show program's version number and exit
--help, -h show this help message and exit
--quiet, -q Minimal output.
--verbose, -v Verbose output.
--debug, -d FunkLoad and doctest debug output.
--debug-level=DEBUG_LEVEL
Debug level 3 is more verbose.
--url=MAIN_URL, -u MAIN_URL
Base URL to bench without ending '/'.
--sleep-time-min=FTEST_SLEEP_TIME_MIN, -m FTEST_SLEEP_TIME_MIN
Minumum sleep time between request.
--sleep-time-max=FTEST_SLEEP_TIME_MAX, -M FTEST_SLEEP_TIME_MAX
Maximum sleep time between request.
--dump-directory=DUMP_DIR
Directory to dump html pages.
--firefox-view, -V Real time view using firefox, you must have a running
instance of firefox in the same host.
--no-color Monochrome output.
--loop-on-pages=LOOP_STEPS, -l LOOP_STEPS
Loop as fast as possible without concurrency on pages,
expect a page number or a slice like 3:5. Output some
statistics.
--loop-number=LOOP_NUMBER, -n LOOP_NUMBER
Number of loop.
--accept-invalid-links Do not fail if css/image links are not reachable.
--simple-fetch Don't load additional links like css or images when
fetching an html page.
--stop-on-fail Stop tests on first failure or error.
--regex=REGEX, -e REGEX
The test names must match the regex.
--list Just list the test names.
--pause Pause between request, press ENTER to continue.

Options
=======
--version show program's version number and exit
--help, -h show this help message and exit
--html, -H Produce an html report.
--with-percentiles, -P Include percentiles in tables, use 10%, 50% and 90%
for charts, default option.
--no-percentiles No percentiles in tables display min, avg and max in
charts (gdchart only).
--diff, -d Create differential report.
--output-directory=OUTPUT_DIR, -o OUTPUT_DIR
Parent directory to store reports, the directoryname
of the report will be generated automatically.
--report-directory=REPORT_DIR, -r REPORT_DIR
Directory name to store the report.
--apdex-T=APDEX_T, -T APDEX_T
Apdex T constant in second, default is set to 1.5s.
Visit http://www.apdex.org/ for more information.

Options
=======
--version show program's version number and exit
--help, -h show this help message and exit
--url=MAIN_URL, -u MAIN_URL
Base URL to bench.
--cycles=BENCH_CYCLES, -c BENCH_CYCLES
Cycles to bench, this is a list of number of virtual
concurrent users, to run a bench with 3 cycles with 5,
10 and 20 users use: -c 2:10:20
--duration=BENCH_DURATION, -D BENCH_DURATION
Duration of a cycle in seconds.
--sleep-time-min=BENCH_SLEEP_TIME_MIN, -m BENCH_SLEEP_TIME_MIN
Minimum sleep time between requests.
--sleep-time-max=BENCH_SLEEP_TIME_MAX, -M BENCH_SLEEP_TIME_MAX
Maximum sleep time between requests.
--test-sleep-time=BENCH_SLEEP_TIME, -t BENCH_SLEEP_TIME
Sleep time between tests.
--startup-delay=BENCH_STARTUP_DELAY, -s BENCH_STARTUP_DELAY
Startup delay between thread.
--as-fast-as-possible, -f
Remove sleep times between requests and between tests,
shortcut for -m0 -M0 -t0
--no-color Monochrome output.
--accept-invalid-links Do not fail if css/image links are not reachable.
--simple-fetch Don't load additional links like css or images when
fetching an html page.
--label=LABEL, -l LABEL
Add a label to this bench run for easier
identification (it will be appended to the directory
name for reports generated from it).
--enable-debug-server Instantiates a debug HTTP server which exposes an
interface using which parameters can be modified at
run-time. Currently supported parameters:
/cvu?inc=<integer> to increase the number of CVUs,
/cvu?dec=<integer> to decrease the number of CVUs,
/getcvu returns number of CVUs
--debug-server-port=DEBUGPORT
Port at which debug server should run during the test

fl-monitor-ctl – 在XML/RPC服务器上执行动作

:~# fl-monitor-ctl -h
Usage
=====
fl-monitor-ctl config_file action

action can be: start|startd|stop|restart|status|test

Execute action on the XML/RPC server.

Options
=======
--version show program's version number and exit
--help, -h show this help message and exit
--quiet, -q Verbose output