Test your Locust knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.
Question 1/5Score 0
Why might a team run a Locust test in "headless" mode (via command-line flags) rather than through the web UI, particularly in a CI pipeline?
Questions in this quiz
Why might a team run a Locust test in "headless" mode (via command-line flags) rather than through the web UI, particularly in a CI pipeline?
What does the `wait_time` attribute on a Locust User class control?
Why might a team choose Locust over a tool with a proprietary GUI-based scripting language (like some traditional commercial load-testing tools)?
Why does Locust's code-first approach (versus a purely visual/no-code load-testing tool) tend to appeal particularly to development teams already writing Python for their application?
What metrics does Locust typically report during and after a test run?
How can a Locust test simulate different types of users with different behaviors (e.g. a browsing user vs. a purchasing user)?
What is a practical reason a developer might extend a Locust task with custom Python logic for handling authentication (like logging in once per user) before running the main test tasks?
How does a Locust test scenario typically define simulated user behavior?
What is the purpose of the `HttpUser` base class specifically, as opposed to Locust's more general `User` class?
What is a general strategy for interpreting a Locust test that shows response times degrading as the number of simulated users increases?
How does Locust typically scale beyond what a single machine can generate for very large load tests?
What does a Locust "failure" typically represent for an HTTP-based task, beyond just an HTTP error status code?