#!/bin/bash # Load Testing Script - 500 Students (ALL SIMULTANEOUSLY) # This script runs the advanced load testing with all 500 students from CSV # WARNING: Running 500 concurrent browsers may stress the system cd /home/tech4biz/work/CP_Front_Automation_Test # Activate virtual environment source venv/bin/activate echo "⚠️ WARNING: Running 500 concurrent browsers simultaneously" echo " This will create significant system load." echo " Monitor system resources (CPU, RAM, Chrome processes)." echo " If system becomes unresponsive, reduce --concurrent value." echo "" read -p "Press Enter to continue or Ctrl+C to cancel..." # Run load test with all 500 students SIMULTANEOUSLY # Configuration: # - 500 students (all from CSV) # - 500 concurrent browsers (ALL AT ONCE - maximum load) # - Headless mode (required for high concurrency) # - Save progress every 5 students # - Print metrics every 10 students python scripts/load_test_e2e_assessment_advanced.py \ --students 500 \ --csv students_with_passwords_2025-12-12T13-19-32.csv \ --concurrent 500 \ --headless \ --save-interval 5 \ --metrics-interval 10 echo "" echo "✅ Load test completed!" echo "📊 Check reports/load_test_progress.json for detailed results"