From 8170dee4a8de6f8405f1ddac64c283f16f027ca1 Mon Sep 17 00:00:00 2001 From: john gale Date: Mon, 3 Dec 2018 16:29:31 -0800 Subject: [PATCH] clarifying locust class usage when no classes specified on CLI --- docs/writing-a-locustfile.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/writing-a-locustfile.rst b/docs/writing-a-locustfile.rst index 3e049f1771..104998541b 100644 --- a/docs/writing-a-locustfile.rst +++ b/docs/writing-a-locustfile.rst @@ -48,7 +48,9 @@ The *min_wait* and *max_wait* attributes can also be overridden in a TaskSet cla The *weight* attribute ---------------------- -You can run two locusts from the same file like so: +If more than one locust class exists in the file, and no locusts are specified on the command line, +each new spawn will choose randomly from the existing locusts. Otherwise, you can specify which locusts +to use from the same file like so: .. code-block:: console