Tag

Locust

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
May 31, 2025 · Operations

Using HttpRunner and Locust for API Performance Testing

This guide walks through installing HttpRunner and Locust, creating a simple YAML test case, converting it to a Locust script, running load tests, customizing behavior, and analyzing performance metrics to evaluate API reliability under load.

APIHttpRunnerLocust
0 likes · 5 min read
Using HttpRunner and Locust for API Performance Testing
Test Development Learning Exchange
Test Development Learning Exchange
May 30, 2025 · Operations

Using Locust to Load Test WebSocket and Redis with Heartbeat Simulation

This guide explains how to set up and run Locust load tests for WebSocket connections and Redis interactions in Python, including client implementations, heartbeat simulation, and practical tips for resource management and concurrency control.

LocustPerformance TestingPython
0 likes · 5 min read
Using Locust to Load Test WebSocket and Redis with Heartbeat Simulation
Test Development Learning Exchange
Test Development Learning Exchange
May 21, 2025 · Operations

Best Practices for Load Testing with Locust: Resource Management, User Simulation, Distributed Testing, and Monitoring

This guide outlines essential Locust load‑testing practices, covering resource and error handling, realistic user behavior simulation, distributed test setup, environment consistency, monitoring and reporting, security considerations, and systematic performance bottleneck identification.

Distributed TestingLocustPerformance Testing
0 likes · 5 min read
Best Practices for Load Testing with Locust: Resource Management, User Simulation, Distributed Testing, and Monitoring
Test Development Learning Exchange
Test Development Learning Exchange
May 19, 2025 · Operations

Locust Command‑Line Parameters and Script Configuration Guide

This article explains how to use Locust's command‑line options, configure scripts with wait_time and task weighting, create custom clients, and apply advanced settings such as catch_response and lifecycle hooks to perform precise load testing of web applications.

LocustPerformance TestingPython
0 likes · 5 min read
Locust Command‑Line Parameters and Script Configuration Guide
Test Development Learning Exchange
Test Development Learning Exchange
May 4, 2025 · Backend Development

How to Set HTTP Request Headers in Locust

This guide explains how to configure custom HTTP request headers in Locust for GET, POST, and shared header scenarios, providing code examples, best practices for security, dynamic updates, and error handling to ensure effective load testing of APIs.

HTTPHeadersLocust
0 likes · 4 min read
How to Set HTTP Request Headers in Locust
Test Development Learning Exchange
Test Development Learning Exchange
May 3, 2025 · Operations

Using HTTP Requests in Locust: Basic and Advanced Guide

This tutorial explains how to install Locust, write Python scripts with HttpUser tasks for GET and POST requests, run the tool, configure the web UI, and apply advanced features like custom headers, cookies, and response handling for effective load testing.

HTTP RequestsLocustPerformance Testing
0 likes · 5 min read
Using HTTP Requests in Locust: Basic and Advanced Guide
Test Development Learning Exchange
Test Development Learning Exchange
Apr 18, 2025 · Backend Development

Integrating SQL Operations in Locust for Performance Testing

This article demonstrates how to integrate SQL database interactions into Locust, a performance testing framework, using Python's mysql-connector-python library to execute read/write operations, enabling data validation and test data retrieval within load testing scenarios.

Database IntegrationLocustPerformance Testing
0 likes · 3 min read
Integrating SQL Operations in Locust for Performance Testing
Test Development Learning Exchange
Test Development Learning Exchange
Feb 5, 2025 · Backend Development

Configuring GET Query Parameters and POST Request Bodies in Locust

This guide explains how to use Locust to add query parameters to GET requests and send JSON or form‑encoded data in POST requests, including combined examples with custom headers for comprehensive HTTP request configuration.

GETHTTPLocust
0 likes · 4 min read
Configuring GET Query Parameters and POST Request Bodies in Locust
Test Development Learning Exchange
Test Development Learning Exchange
Feb 3, 2025 · Operations

Exception Handling in Locust: Best Practices for Robust Load Testing

This article explains how to implement exception handling in Locust to ensure robust test scripts that can handle network timeouts, request failures, and other exceptions effectively.

Error HandlingException HandlingHTTP Requests
0 likes · 4 min read
Exception Handling in Locust: Best Practices for Robust Load Testing
Test Development Learning Exchange
Test Development Learning Exchange
Feb 2, 2025 · Operations

Performing File Operations in Locust Load‑Testing Scripts

This article demonstrates how to use Python's standard file handling libraries within Locust load‑testing scripts to read, write, and upload files, including example code, best‑practice tips, exception handling, and concurrency considerations for reliable file operations during performance testing.

LocustPythonfile operations
0 likes · 5 min read
Performing File Operations in Locust Load‑Testing Scripts
Test Development Learning Exchange
Test Development Learning Exchange
Feb 1, 2025 · Operations

Integrating Multiple Custom Clients in Locust for HTTP and WebSocket Testing

This guide explains how to integrate multiple custom clients in Locust, covering the definition of client classes for HTTP and WebSocket, their use within a user class, configuration of run parameters, and important considerations such as resource management and exception handling.

Custom ClientHTTPLocust
0 likes · 6 min read
Integrating Multiple Custom Clients in Locust for HTTP and WebSocket Testing
Test Development Learning Exchange
Test Development Learning Exchange
Jan 31, 2025 · Operations

How to Set User Spawn Rate in Locust via CLI and Web UI

This article explains how to configure Locust’s user spawn rate—the number of virtual users started per second—using command‑line options or the Web interface, includes example commands, steps to launch the service, and considerations for dynamic adjustment and test safety.

CLILocustUser Spawn Rate
0 likes · 4 min read
How to Set User Spawn Rate in Locust via CLI and Web UI
Test Development Learning Exchange
Test Development Learning Exchange
Jan 30, 2025 · Operations

Locust Event System Overview and Usage

The article explains Locust's event system, detailing common events such as init, test_start, test_stop, request_success, request_failure, quitting, worker_report, and hatch_complete, and provides Python code examples for attaching listeners to customize load‑testing behavior.

Event SystemLocustPerformance Monitoring
0 likes · 4 min read
Locust Event System Overview and Usage
Test Development Learning Exchange
Test Development Learning Exchange
Jan 26, 2025 · Operations

Integrating WebSocket Connections in Locust for Load Testing

This guide demonstrates how to add WebSocket support to Locust by installing the websockets library, creating a custom WebSocket client class, defining user tasks, handling connection events, and running the load test against a WebSocket server.

LocustPerformance TestingPython
0 likes · 5 min read
Integrating WebSocket Connections in Locust for Load Testing
Test Development Learning Exchange
Test Development Learning Exchange
Jan 25, 2025 · Operations

Getting Started with Locust for Performance Testing

This guide explains how to install Locust, write a Python test script, launch the tool, configure load parameters, analyze real‑time results, and explore advanced features such as custom clients and distributed testing for web performance evaluation.

LocustPerformance TestingPython
0 likes · 4 min read
Getting Started with Locust for Performance Testing
Test Development Learning Exchange
Test Development Learning Exchange
Nov 20, 2023 · Operations

Full‑Chain Performance Testing for E‑Commerce Using Python and Locust

This article explains why full‑link performance testing is essential for e‑commerce systems, provides step‑by‑step Python Locust scripts to simulate user actions such as login, product browsing and ordering, shows how to run the tests, and demonstrates multi‑domain testing with weighted tasks.

BackendLocustPerformance Testing
0 likes · 6 min read
Full‑Chain Performance Testing for E‑Commerce Using Python and Locust
HomeTech
HomeTech
Feb 22, 2023 · Operations

Design and Implementation of a Realistic Simulation Load‑Testing System for High‑Concurrency Scenarios

The article describes the background, architecture, tool selection, key features, implementation challenges (including Go code for TCP/WebSocket handling), and real‑world deployment of a distributed simulation load‑testing platform that supports dynamic QPS control, multi‑protocol testing, and end‑to‑end data verification.

Distributed SystemsGoLocust
0 likes · 8 min read
Design and Implementation of a Realistic Simulation Load‑Testing System for High‑Concurrency Scenarios
FunTester
FunTester
Feb 10, 2023 · Operations

Performance Testing Overview and Tool Recommendations in Continuous Testing

The article explains performance testing as a non‑functional testing activity within continuous testing, describes its various types, compares process/thread/coroutine execution models, evaluates tools like LoadRunner, JMeter and Locust, and outlines desired features for container‑friendly performance testing solutions.

CI/CDDevOpsJMeter
0 likes · 9 min read
Performance Testing Overview and Tool Recommendations in Continuous Testing
Snowball Engineer Team
Snowball Engineer Team
Aug 1, 2022 · Fundamentals

Performance Testing: Concepts, Scenarios, Tools, and Best Practices

This article explains what performance testing is, when to conduct it, typical scenarios, step‑by‑step execution—including requirements, test design, tool selection, script examples with Locust, result analysis, and key metrics such as throughput, response time, P90, and optimal concurrency.

JMeterLocustPerformance Testing
0 likes · 27 min read
Performance Testing: Concepts, Scenarios, Tools, and Best Practices