Issue
I’m trying to use locust 2.6.1 in no web mode but it’s throwing following error
$>locust -f load_testing_class_based.py --no-web -c 1000 -r 100 --run-time 2m
locust: error: unrecognized arguments: --no-web -c
Also, how to add time limit for execution??
I ran this with web ui
$>locust -f load_testing_class_based.py -t 120s
but execution continued even after 2 mins
Solution
—no-web
was renamed —headless
a while back.
-t
only applies to headless (and autostart) runs.
Answered By – Cyberwiz
Answer Checked By – Gilberto Lyons (BugsFixing Admin)