Security header misconfigurations aren't just technical oversights—they create real vulnerabilities that expose your users to XSS attacks, clickjacking, and data breaches. But manually checking security headers across every page? That's time-consuming and error-prone at scale. LoadForge can check them all for you!
Accessibility issues aren't just compliance concerns—they exclude real users, create legal liability, and hurt your SEO rankings. But manually checking every page for WCAG compliance? That's overwhelming and inconsistent across large websites. Automate monitoring with LoadForge.
TLDR: LoadForge has introduced enhanced file management for load testing, enabling users to upload and manage data files (CSV, JSON, TXT) that integrate seamlessly with testing scripts to enhance realism and quality. These files are automatically distributed to all load generators, offer support for multiple formats, and provide persistent storage.
•2 min read
We're excited to announce a powerful new addition to LoadForge: enhanced file management capabilities for your load tests. This feature allows you to upload, create, and manage data files that can be seamlessly integrated into your load testing scripts.
Why We Added File Management
Load testing often requires realistic data to simulate user behavior accurately. Whether you're testing authentication systems with thousands of user credentials, submitting forms with varied input data, or configuring complex API test scenarios, having access to structured data files can significantly improve the quality and realism of your tests.
Based on your feedback, we've implemented a robust file management system that makes it easy to incorporate data-driven testing into your LoadForge projects.
How It Works
Files uploaded through our intuitive interface are automatically distributed to all your load generators and stored in a dedicated files/ directory. Your Locust scripts can then access these files using standard file operations, making it simple to:
Load user credentials from JSON files
Read test data from CSV files
Configure test parameters using configuration files
Support for Multiple Formats: Upload CSV, JSON, or TXT files (up to 5MB)
Intelligent Editing: Our system recognizes file types and provides appropriate editing capabilities (CSV editor for .csv files, etc.)
Seamless Integration: Files are automatically available on all load generators without any additional configuration
Persistent Storage: Your files remain available for future test runs
Practical Examples
Here's a quick example of how you might use a JSON file containing user credentials in your Locust test:
def on_start(self):
# Load user credentials from the uploaded JSON file
with open('files/userlist.json', 'r') as f:
self.users = json.load(f)
<pre><code># Select a random user for this test
user_data = random.choice(self.users)
self.username = user_data['username']
self.password = user_data['password']