3.2 KiB
3.2 KiB
6 PC Load Test Commands - 50 Students Each
🎯 Overview
6 PCs, each running 50 students simultaneously. Total: 300 students (100 from each CSV).
🚀 Complete Commands (Copy-Paste Ready)
PC 1 - 50 Students from CSV 1 (indices 0-49)
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 50 --headless --metrics-interval 10
PC 2 - 50 Students from CSV 1 (indices 50-99)
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 50 --end 100 --workers 50 --headless --metrics-interval 10
PC 3 - 50 Students from CSV 2 (indices 0-49)
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 50 --headless --metrics-interval 10
PC 4 - 50 Students from CSV 2 (indices 50-99)
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 50 --end 100 --workers 50 --headless --metrics-interval 10
PC 5 - 50 Students from CSV 3 (indices 0-49)
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 50 --headless --metrics-interval 10
PC 6 - 50 Students from CSV 3 (indices 50-99)
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 50 --end 100 --workers 50 --headless --metrics-interval 10
📊 Distribution
| PC | CSV File | Students | Indices | Workers |
|---|---|---|---|---|
| PC 1 | CSV 1 | 50 | 0-49 | 50 |
| PC 2 | CSV 1 | 50 | 50-99 | 50 |
| PC 3 | CSV 2 | 50 | 0-49 | 50 |
| PC 4 | CSV 2 | 50 | 50-99 | 50 |
| PC 5 | CSV 3 | 50 | 0-49 | 50 |
| PC 6 | CSV 3 | 50 | 50-99 | 50 |
| Total | 3 CSVs | 300 | - | 300 |
📝 Using Shell Scripts
On each PC:
# PC 1
./scripts/PC1_50_students.sh
# PC 2
./scripts/PC2_50_students.sh
# PC 3
./scripts/PC3_50_students.sh
# PC 4
./scripts/PC4_50_students.sh
# PC 5
./scripts/PC5_50_students.sh
# PC 6
./scripts/PC6_50_students.sh
🌐 With Custom URL
Add --url to any command:
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 50 --headless --metrics-interval 10 --url http://localhost:3983
Status: ✅ Ready - 6 PCs, 50 Students Each, All Running Simultaneously