Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add key commands for increasing and stopping users #1612

Merged
merged 17 commits into from
Nov 13, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
@@ -141,6 +141,8 @@ To start tests directly, without using the web interface, use ``--headless``.
Parameters can also be set through :ref:`environment variables <environment-variables>`, or in a
:ref:`config file <configuration-file>`.

To change number of users during a headless run press w or W (1, 10) to spawn users and s or S to stop(1, 10)

How to write a *real* locust file?
""""""""""""""""""""""""""""""""""

2 changes: 1 addition & 1 deletion locust/argument_parser.py
Original file line number Diff line number Diff line change
@@ -141,7 +141,7 @@ def setup_parser_arguments(parser):
"--users",
type=int,
dest="num_users",
help="Number of concurrent Locust users. Primarily used together with --headless",
help="Number of concurrent Locust users. Primarily used together with --headless. Can be changed during a test by inputs w W(spawn 1, 10 users) and s S(stop 1, 10 users)",
env_var="LOCUST_USERS",
)
parser.add_argument(