4.3 KiB
4.3 KiB
Multi-System Load Test Commands
🎯 Overview
Complete commands to run load tests across multiple systems, with each system handling 50 students from different CSV files.
📋 Available CSV Files
students_with_passwords_2025-12-15T10-49-08_01.csvstudents_with_passwords_2025-12-15T10-59-02_03.csvstudents_with_passwords_2025-12-15T11-06-37_05.csv
🚀 Complete Commands (Copy-Paste Ready)
SYSTEM 1 - PC 1
cd /home/tech4biz/work/CP_Front_Automation_Test && source venv/bin/activate && python3 tests/load_tests/test_generic_load_assessments.py --csv students_with_passwords_2025-12-15T10-49-08_01.csv --start 0 --end 50 --workers 20 --headless --metrics-interval 10
SYSTEM 2 - PC 2
cd /home/tech4biz/work/CP_Front_Automation_Test && source venv/bin/activate && python3 tests/load_tests/test_generic_load_assessments.py --csv students_with_passwords_2025-12-15T10-59-02_03.csv --start 0 --end 50 --workers 20 --headless --metrics-interval 10
SYSTEM 3 - PC 3
cd /home/tech4biz/work/CP_Front_Automation_Test && source venv/bin/activate && python3 tests/load_tests/test_generic_load_assessments.py --csv students_with_passwords_2025-12-15T11-06-37_05.csv --start 0 --end 50 --workers 20 --headless --metrics-interval 10
🌐 With Custom URL
If you need to specify a custom frontend URL, add --url argument:
SYSTEM 1 - PC 1 (with custom URL)
cd /home/tech4biz/work/CP_Front_Automation_Test && source venv/bin/activate && python3 tests/load_tests/test_generic_load_assessments.py --csv students_with_passwords_2025-12-15T10-49-08_01.csv --start 0 --end 50 --workers 20 --headless --metrics-interval 10 --url http://localhost:3983
SYSTEM 2 - PC 2 (with custom URL)
cd /home/tech4biz/work/CP_Front_Automation_Test && source venv/bin/activate && python3 tests/load_tests/test_generic_load_assessments.py --csv students_with_passwords_2025-12-15T10-59-02_03.csv --start 0 --end 50 --workers 20 --headless --metrics-interval 10 --url http://localhost:3983
SYSTEM 3 - PC 3 (with custom URL)
cd /home/tech4biz/work/CP_Front_Automation_Test && source venv/bin/activate && python3 tests/load_tests/test_generic_load_assessments.py --csv students_with_passwords_2025-12-15T11-06-37_05.csv --start 0 --end 50 --workers 20 --headless --metrics-interval 10 --url http://localhost:3983
📝 Using Shell Scripts
Alternatively, use the provided shell scripts:
On PC 1:
chmod +x scripts/PC1_50_students.sh
./scripts/PC1_50_students.sh
On PC 2:
chmod +x scripts/PC2_50_students.sh
./scripts/PC2_50_students.sh
On PC 3:
chmod +x scripts/PC3_50_students.sh
./scripts/PC3_50_students.sh
📊 Configuration Summary
| System | CSV File | Students | Indices | Workers | Total Load |
|---|---|---|---|---|---|
| PC 1 | 2025-12-15T10-49-08_01.csv |
50 | 0-49 | 20 | 50 students |
| PC 2 | 2025-12-15T10-59-02_03.csv |
50 | 0-49 | 20 | 50 students |
| PC 3 | 2025-12-15T11-06-37_05.csv |
50 | 0-49 | 20 | 50 students |
| Total | 3 CSVs | 150 | - | 60 | 150 students |
🔧 Command Breakdown
--csv: CSV file path--start 0: Start from first student (index 0)--end 50: End at 50th student (exclusive, so indices 0-49)--workers 20: 20 concurrent browsers per system--headless: Run in headless mode--metrics-interval 10: Print metrics every 10 students--url(optional): Custom frontend URL
🚀 Execution Steps
- On PC 1: Run the PC 1 command
- On PC 2: Run the PC 2 command
- On PC 3: Run the PC 3 command
- Monitor: Each system will print real-time metrics
📈 Expected Results
- Total Students: 150 (50 per system)
- Concurrent Browsers: 60 total (20 per system)
- Load Distribution: Evenly distributed across 3 systems
- Execution Time: ~20-40 minutes per system (depending on performance)
💡 Tips
- Start all systems simultaneously for maximum load
- Monitor each system for real-time metrics
- Check reports in
reports/load_tests/after completion - Use
--urlif testing against different environments
Status: ✅ Ready to Execute