question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Starting load test from the cli but monitoring from the web UI

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
nealedjcommented, Nov 28, 2018

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 the hatch_rate and locust_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.

0reactions
cyberwcommented, Aug 29, 2021

I’m making a fix for this…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found