Starting load test from the cli but monitoring from the web UI
See original GitHub issueI think this is a feature request. I’m expecting that I can use locust CLI to start the load test, but monitor the results from the web UI.
Description of issue / feature request
When I run locust --host=... -c 10 -r 5
it doesn’t start anything. Because it starts the web UI, which presents the user a form to manually start the load test.
Expected behavior
I expect locust to start the test and let me monitor the results from the web UI.
Actual behavior
locust
ignores the -c
and -r
when --no-web
is specified.
Environment settings (for bug reports)
- Locust version: 0.8.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Command Line Execution | Load Testing - SoapUI
Fortunately the UI includes a wizard for launching the LoadTestRunner, which will help you assess the output as well as to create a...
Read more >Running a test from a command line - IBM
You can run a test without opening the product by using the command-line interface. Before you begin. You must have set the Web...
Read more >An Introduction to Load Testing | DigitalOcean
First, we're going to make sure we're monitoring the right system resources during the load test. Then, we'll find out the absolute maximum ......
Read more >Load Test Command Line Interface - cli
This topic explains how you run a load test from the command line interface. Starting the Load Test Server on Remote Machines.
Read more >15 BEST Performance Testing Tools (Load Testing Tools) in ...
Enterprise-grade load and performance testing tool for web applications. WebLOAD is a tool of choice for enterprises with heavy user load and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a bit of a hack to gain a programmatic interface you could start locust with the web UI and then make a POST request to the
/swarm
endpoint with thehatch_rate
andlocust_count
values.E.g.
curl -XPOST -d "hatch_rate=5&locust_count=100" http://my-locust-master-host/swarm
Then GET
/stop
when you’re done.I’m making a fix for this…