67 lines
2.3 KiB
Bash
Executable File
67 lines
2.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Multi-System Load Test Commands
|
|
# Each system takes 50 students from different CSVs
|
|
# Run these commands on respective systems
|
|
|
|
# ============================================================================
|
|
# SYSTEM 1 - PC 1
|
|
# ============================================================================
|
|
# 50 students from first CSV (indices 0-49)
|
|
# Command to run on 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
|
|
# ============================================================================
|
|
# 50 students from second CSV (indices 0-49)
|
|
# Command to run on 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
|
|
# ============================================================================
|
|
# 50 students from third CSV (indices 0-49)
|
|
# Command to run on 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 needed)
|
|
# ============================================================================
|
|
# Add --url argument to use custom frontend URL
|
|
# Example for 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
|
|
|