# Quick Start Guide - Load Testing

## 🚀 For Fresh Systems

### One-Command Setup

```bash
cd /home/tech4biz/work/CP_Front_Automation_Test
./setup_load_test_environment.sh
```

This will set up everything automatically!

## 📝 Manual Setup (If Needed)

### 1. Check Python
```bash
python3 --version  # Should be 3.8+
```

### 2. Create Virtual Environment
```bash
python3 -m venv venv
```

### 3. Activate Virtual Environment
```bash
source venv/bin/activate
```

### 4. Install Dependencies
```bash
pip install -r requirements.txt
```

### 5. Validate Setup
```bash
python3 tests/load_tests/validate_function_signature.py
```

## ✅ Run Your First Test

### Test with 1 Student
```bash
source venv/bin/activate

python3 tests/load_tests/test_generic_load_assessments.py \
    --csv students_with_passwords_2025-12-12T13-19-32.csv \
    --start 0 \
    --end 1 \
    --workers 1 \
    --headless \
    --metrics-interval 1
```

### Scale Up to 10 Students
```bash
python3 tests/load_tests/test_generic_load_assessments.py \
    --csv students_with_passwords_2025-12-12T13-19-32.csv \
    --start 0 \
    --end 10 \
    --workers 10 \
    --headless \
    --metrics-interval 5
```

### Full Load Test (100 Students)
```bash
python3 tests/load_tests/test_generic_load_assessments.py \
    --csv students_with_passwords_2025-12-12T13-19-32.csv \
    --start 0 \
    --end 100 \
    --workers 100 \
    --headless \
    --metrics-interval 10
```

## 📚 Need More Help?

- **Full Documentation**: `tests/load_tests/README.md`
- **Usage Guide**: `tests/load_tests/LOAD_TEST_USAGE.md`
- **Issue Resolution**: `tests/load_tests/VERIFICATION_SUMMARY.md`

