Documentation fix for Bfg: pip, teardown

This commit is contained in:
Mikhail Dyomin 2017-04-20 17:10:33 +03:00
parent 4aee194233
commit 0542ca9eb4

View File

@ -561,6 +561,9 @@ But the main purpose of BFG is to support user-defined scenarios in python. Here
def teardown(self): def teardown(self):
''' this will be executed in each worker after the end of the test ''' ''' this will be executed in each worker after the end of the test '''
log.info("Tearing down LoadTest") log.info("Tearing down LoadTest")
#It's mandatory to explicitly stop worker process in teardown
os._exit(0)
return 0
2. Define your options in a config file: 2. Define your options in a config file:
@ -646,7 +649,13 @@ INI file section: **[bfg]**
Default: ``caseline``. Default: ``caseline``.
:pip: :pip:
Install python modules with ``pip install --user`` before the test. Install python modules with ``pip install --user`` before the test. If you need multiple modules use multiline options, i.e.:
::
pip=grequests
msgpack
:init_param: :init_param:
An initialization parameter that will be passed to your ``setup`` method. An initialization parameter that will be passed to your ``setup`` method.